![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
|
Need some help with this little PHP script
It won't work with me.. am I overlooking something here ?
Form: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Contact Us</title> <head></head> <body> <FORM METHOD=post ACTION="contactform.php"> <p> </p> <p> </p> <p> </p> <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td><div align="right"> <p><img src="bel_small.gif" width="250" height="79" border="0"></p> <p> </p> <p> </p> </div></td> </tr> <tr> <td colspan="2"> <table width="600" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td colspan="2"><span class="style1">Contact us here </span></td> </tr> <tr> <td width="83"> </td> <td width="417"> </td> </tr> <tr> <td><span class="style2">Name</span></td> <td><input type="text" name="name" size="40"></td> </tr> <tr> <td><span class="style3">Email</span></td> <td><input type="text" name="email" size="40"></td> </tr> <tr valign="top"> <td><span class="style3">Comment </span></td> <td><textarea name="comment" cols="60" rows="10"></textarea></td> </tr> <tr> <td> </td> <td> <div align="center"> <input type="submit" name="Submit"> </div></td> </tr> </table> </td> </tr> </table> <p align="right"> </p> <p align="right"> </p> <p align="right"> </p> <p> </p> <p> </p> <p> </p> <p> </p> </body> </html> Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head></head> <title>Contact Result</title> <body> <div align="center"> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><div align="center"><img src="bel_small.gif" width="250" height="79" border="0"></div></td> </tr> </table> <hr align="center" width="800"> <?php $formsent = mail("[email protected]", "Info req", "Submit by: $name\r\nEmail: $email\r\nComment: $comment"); if($formsent hahahaha 1) { print("<p>Your comment has been sent. We will reply soon.</p>"); } else print("<p>Sorry, there's something wrong with the submitted form. Please try again</p>"); ?> </div> </body> </html> ![]()
__________________
OMGWTFBBQ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
|
Just for info: this is what i get in my email:
Quote:
![]()
__________________
OMGWTFBBQ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
|
Quote:
Thanks for helping me with this man ! I'll get it fixed.. ![]()
__________________
OMGWTFBBQ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Dec 2002
Location: PEI, Canada
Posts: 6,924
|
Quote:
$name=$_POST['name']; $email=$_POST['email']; $comment=$_POST['comment']; right after your opening <?php tag |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
|
Thanks man !!
![]()
__________________
OMGWTFBBQ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
You should close the form tag in the HTML as well - thats not the problem but it should be done
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jun 2005
Location: Dutchie !!!
Posts: 2,119
|
Done. Thanks !
__________________
OMGWTFBBQ |
![]() |
![]() ![]() ![]() ![]() ![]() |