Redneck
Account Closed
- Impact
- 0
Alright, i did this my self please do not take credit. it will also send the IP address of the person submitting it, this will prevent people from spamming you, if they do just ban there IP.(if you need a script to do this just ask)
First Create A Page Called "contact.php"(without the " ")
Now Make a page called contactme.php
pretty simple, to have the form appear open the file called contect.php after you upload it
To edit the Message that appears after the form is submitted edit this line in contactme.php
Thanks to Atom for adding the IP part.
Post any questions you may have here.
First Create A Page Called "contact.php"(without the " ")
PHP:
<form action="contactme.php" mehod="post">
<p align="center"> <font color="#FFFFFF"><b><font color="#FFFFFF" size="2" face="Verdana">Name:</font></font><font size="2" face="Verdana">
<input type="text" name"username" size="30"/>
<br>
<br>
<font color="#CCCCCC">Email:</font>
<input type="text" name="useraddr" size="30">
<br>
<br>
<font color="#FFFFFF">Message:</font>
<textarea name="comments" cols="30" rows="5"> </textarea>
<br>
<br>
<input type="submit" value="Send Form">
</font></p><br>
</form></b>
Now Make a page called contactme.php
PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond
ASAP.</font></div>
<?PHP
#Where you want the email to go
$to = "[email protected]";
#subject of the message, change this
$re = "contactformmadebyredneck";
#message from the feedback form, don't touch this will send persons ip
$msg = "$comments\n\n IP : $REMOTE_ADDR";
#send the mail, don't edit this
mail($to,$re,$msg);
?>
pretty simple, to have the form appear open the file called contect.php after you upload it
To edit the Message that appears after the form is submitted edit this line in contactme.php
PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond
ASAP.</font></div>
Thanks to Atom for adding the IP part.
Post any questions you may have here.















