PDA

View Full Version : Contact Form



sunny_ag
08-04-2006, 03:20 PM
use this simple Contact form that you can use with any desing simple to edit to make better

Contact part of the script call this part contact.php

<td width="3%"><div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<input name="name" type="text" size="20">
: Name </font> </div></td>
</tr>
<tr>
<td height="24"><div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<input name="email" type="text" size="20">
: Url</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<input name="email2" type="text" size="20">
: Email</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">::
Comment :: </font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="message" cols="40" rows="5"></textarea>
</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
<input name="submit" type="submit" value="send">
</font></div></td>

After Note this is to comferm the email

<?php

//variables (change these)

$youremail = "YOUREMAIL@YOUREMAIL.COM";
// your email address

$subject = "Message From tuts4you.net";
// the subject of the email

$thankyou = "middle.php";
// thank you page

// don't change anything else

if($email == ""){
?><body bgcolor="#FFFFFF" text="#000000">
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">No email address added.
Please go back.<br/>
<?php
}elseif($name == ""){
?>
No name added. Please go back.<br/>
<?php
}elseif($message == ""){
?>
No message added. Please go back.<br/>
<?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");
?>
</font>
<**** **********=********* ***********; url=<?echo $thankyou;?>"">
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
}
?>
</font>

nasreenbasu
09-16-2017, 06:03 AM
thank you i am searching for this from log time it really works will

d773hf82jhf721hf