| |||
| Quote:
to make this i m giving you the codes of 1. the forum you insert into a HTML page 2. the PHP file that processes the form and sends it to your email address insert into a HTML page Code: <form name=contactme action=contactme.php method=post> <div align="center"> <table> <tr> <td align=right>Your Name:</td> <td width="15"> </td> <td><input size=45 maxlength=45 type=text name=name style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td align=right>Your Email Address:</td> <td> </td> <td><input size=45 maxlength=45 type=text name=from style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td align=right>eMail Subject:</td> <td> </td> <td><input size=45 maxlength=90 type=text name=subject style="font-family: Courier New; font-size: 10pt"></td></tr> <tr> <td valign=top align=right>Contents:</td> <td> </td> <td><textarea name=body rows=12 cols=60 style="font-family: Courier New; font-size: 10pt"></textarea></td></tr> <tr> <td> </td> <td> </td> <td><input type=submit value=" Submit " name=submit style="font-size: 10pt; font-family: Tahoma"></td></tr> </table> </div> </form> save in same folder the below code to a file called in our example contactme.php the name MUST be identical as in the form itself !!!! if you save into OTHER folder - then adapt the path of "action=contactme.php" above Code: <?php
$body="
$name ($from) sent you an online message:
Comments:
========
$body";
$success = mail("YOUR recipient email @ your_site dot com","$subject","$from","$body");
?>
<html>
<head>
</head>
<body>
.
.
.
Thank you for your message
.
.
.
</body>
</html> |
![]() |
| Thread Tools | |
| Display Modes | |
| |