|
|
|
|
![]() ![]() |
Mar 5 2005, 07:35 PM
Post
#1
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 76 Joined: 5-March 05 Member No.: 4,178 |
save this page as formmail.php
Code: QUOTE <?php $MailTo = "your email"; $MailSubject = "contact"; $MailHeader = "From: $s1"; $MailSent = "Put here the information you want to be shown after the message is sent."; if ($s1 == ""){ echo "You did not put your <i>name</i>."; } else { $MailBody = "Name : $s1\n"; } if ($s2 == ""){ echo "You did not put your <i>E-Mail</i>."; } else { $MailBody .= "Email : $s2\n"; } if ($s3 == ""){ } else { $MailBody .= "Message : $s3\n"; } { mail($MailTo, $MailSubject, $MailBody, $MailHeader); echo("$MailSent"); } ?> ------------------ save this page as contact.php Code: QUOTE <u> Contact Form</u><br><form name="form1" method="post" action="formmail.php"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="250" id="AutoNumber1" height="200">
<tr> <td width="111" height="25"> <b><font size="2" color="#FFFFFF" face="Arial">Name: <input type="text" name="s1" size="20" style="font-family: Arial; font-size: 8pt; color="#FFFFFF" tabindex="1"></font></b></td> </tr> <tr> <td width="111" height="25"> <b><font size="2" color="#FFFFFF" face="Arial">E-mail: <input type="text" name="s2" size="20" style="font-family: Arial; font-size: 8pt; color="#FFFFFF" tabindex="3"></font></b></td> <tr> <td width="111" height="23"> <b><font size="2" color="#FFFFFF" face="Arial">Message:<br> <textarea rows="4" name="s2" cols="50" style="font-size: 8pt; color="#FFFFFF" ; font-family: Arial" tabindex="7">Type Your Message Here. Remember to put your image url, your site name, and your name.</textarea></font></b></td></tr> </table> <font face="Arial" style="font-size: 8pt"> <input type="submit" value="Send Message" name="send" style="font-family: Arial; font-size: 8pt; color="#FFFFFF" > <input type="reset" value="Reset Form" name="reset" style="font-family: Arial; font-size: 8pt; color="#FFFFFF" ></font> </form> |
|
|
|
Mar 6 2005, 12:11 AM
Post
#2
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 91 Joined: 20-December 04 Member No.: 2,823 |
This would seem useful as a "Have a question?" or customer support page.
Good work! |
|
|
|
Jun 27 2005, 08:17 PM
Post
#3
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 39 Joined: 27-June 05 Member No.: 8,729 |
I already have a mail form but I am not sure if I like it that much. Using this mail form would I be able to make more than one form off of the page formmail.php?
|
|
|
|
Jun 27 2005, 09:35 PM
Post
#4
|
|
|
Moderator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Please don't revive old topics.
If you want a form mail, get it here: http://www.trap17.com/forums/email-script-...php-t20516.html Post all your questions there. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 07:19 PM |