thaiceman Posted January 24, 2009 Share Posted January 24, 2009 Now that my php page works. For some reason, when I fill out the form on the home page of my site, the email that it sends to me only consists of what is being asked in the form (ex. Name, email address, etc.) Whatever I type in the white fields do not show up in the email. Any suggestions??? The code is pasted below <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 12.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Thank You!</title> </head> <body> <?php #recipient's email address $to = "icecoldlogos@graphic-designer.com"; #Subject of the message $re = "Logo Request"; #data from the logo form $msg = "Name: $name Email: $email Country: $country Phone: $phone Company: $company Company do: $companydo Ideal Logo: $ideallogo Colors: $colors Exact Text: $exact_text Width: $width Height: $height Premium/Standard: $R1 Anything Else: $anythingelse " ; #send the email now... mail ($to, $re, $msg); ?> <p align="center"> <a href="index.htm"><img style="border: 0px solid ; width: 545px; height: 389px;" alt="" src="images/Ice%20Cold%20logos_2.gif"></a></p> <p align="center"><font face="Arial" size="3">Thank you!</font></p> <p align="center"><font face="Arial" size="3">Your data has been received and is being processed.</font></p> <p align="center"><font face="Arial"><font size="3">Your 2 original logo samples will be emailed to you<br> as soon as </font>it is completed!</font></p> <p align="center"><a href="index.htm"><font face="Arial" size="2">Click here to return to the Home Page</font></a></p> <p align="center"> </p> </body> </html> Link to comment https://forums.phpfreaks.com/topic/142291-code-help-please-its-for-a-form-im-using-on-my-webste/ Share on other sites More sharing options...
DeanWhitehouse Posted January 24, 2009 Share Posted January 24, 2009 Yes use code tags, and example $name should be $_POST['name_of_text_field']; You are trying to use undeclared vars Link to comment https://forums.phpfreaks.com/topic/142291-code-help-please-its-for-a-form-im-using-on-my-webste/#findComment-745480 Share on other sites More sharing options...
.josh Posted January 24, 2009 Share Posted January 24, 2009 You already have a thread asking this same thing. Do not make multiple threads asking the same thing. Also, please stop making vague titles in all caps. Read the forum rules. Thread closed. Link to comment https://forums.phpfreaks.com/topic/142291-code-help-please-its-for-a-form-im-using-on-my-webste/#findComment-745482 Share on other sites More sharing options...
Recommended Posts