I want to use php contact form in wordpress website. Is there any solution for me?
TKS!
Betty
I want to use php contact form in wordpress website. Is there any solution for me?
TKS!
Betty
There is a heap of ones available ,
first put in your form code
<form name="form" method="post" action="yourdomain/contact.php">
Enter Your Name:</span>
<input type="text" name="name">
<span class="heading_Black"> Enter Your Email: </span>
<input type="text" name="email">
<input submit name="submit" id="submit" value="send" />
</form>
Then create your contact.php and upload it anywhere on your site
//variables (change these)
$youremail = "your email address";
// your email address
$subject = "put the subject here";
// the subject of the email
$thankyou = "put the thankyou page here";
// thank you page
// don't change anything else
;if($email == ""){
?>
No email address added. Please go back.
<?php
;}elseif($name == ""){
?>
No name added. Please go back.
<?php
;}else{
$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";
mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
<?php
}
?>
This topic has been closed to new replies.