darkfreaks Posted June 11, 2009 Share Posted June 11, 2009 http://www.coderemix.com/tutorials/contact-php-email-form Quote Link to comment Share on other sites More sharing options...
Telessa Posted June 11, 2009 Author Share Posted June 11, 2009 Did that didn't work.................... here's the view source on the page..... <?php /* Subject and Email Variables */ $emailSubject = 'Request An Investigation'; $webMaster = 'tiffany@supernaturalsolutions.org'; /* Gathering Data Variables */ $hear = $_POST['hear']; $name = $_POST['name']; $email = $_POST['email']; $contact = $_POST['contact']; $myspace = $_POST['myspace']; $url = $_POST['url']; $atleast = $_POST['atleast']; $age = $_POST['age']; $available = $_POST['available']; $evidence = $_POST['evidence']; $feloney = $_POST['feloney']; $fee = $_POST['fee']; $religion = $_POST['religion']; $diverse = $_POST['diverse']; $believe = $_POST['believe']; $investigator = $_POST['investigator']; $bring = $_POST['bring']; $job = $_POST['job']; $fears = $_POST['fears']; $meetings = $_POST['meetings']; $place = $_POST['place']; $past = $_POST['past']; $explain = $_POST['explain']; $experienced = $_POST['experienced']; $explain2 = $_POST['explain2']; $body = <br><hr><br> How did you hear about us?: $hear <br> Name: $name <br> Email: $email <br> Contact Number: $contact <br> Do you have Myspace?: $myspace <br> What's your url or display name?: $url <br> Are you at least 21?: $atleast <br> Age: $age <br> Are you available Saturday nights?: $availalbe <br> Willing to review evidence?: $evidence <br> Do you have any felonies?: $feloney <br> Willing to pay membership fee?: $fee <br> What religion are you?: $religion <br> You ok with other memebers being different?: $diverse <br> Do you believe in ghosts?: $believe <br> Why do you want to be an investigator?: $investigator <br> What can you bring to our team?: $bring <br> What job would you like?: $job <br> What religion are you?: $religion <br> What are your fears?: $fears <br> Ok with attending meetings?: $meetings <br> Any place you want to invesitgate: $place <br> Have you investigated in the past?: $past <br> Please explain: $explain <br> Ever experienced paranormal phenomena in your past?: $experienced <br> Please explain: $explain2 <br> $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as HTML */ $theResults = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Thank you</title> <style type="text/css"> <!-- body,td,th { font-family: Georgia; font-size: 16px; color: #00C; } body { background-color: #000; background-image: url(Images/ForestRoad-in-Fogdark.png); } --> </style> <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> </head> <body> <table width="800" border="0" align="center"> <tr> <td width="350" align="center" valign="top"><p> </p> <p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar"> <param name="movie" value="Images/logostars.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="swfversion" value="6.0.65.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don�t want users to see the prompt. --> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="Images/logostars.swf" width="350" height="250"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </p> <p> </p> <p> </p> <p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton"> <param name="movie" value="Images/Home.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="swfversion" value="6.0.65.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don�t want users to see the prompt. --> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="Images/Home.swf" width="85" height="140"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="opaque" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </p></td> <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou"> <param name="movie" value="Images/thankyoumember.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="swfversion" value="6.0.65.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don�t want users to see the prompt. --> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="Images/thankyoumember.swf" width="455" height="450"> <!--<![endif]--> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="swfversion" value="6.0.65.0" /> <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object></td> </tr> </table> <script type="text/javascript"> <!-- swfobject.registerObject("FlashID"); swfobject.registerObject("FlashID2"); swfobject.registerObject("FlashID3"); //--> </script> </body> </html> echo "$theResults"; ?> Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted June 11, 2009 Share Posted June 11, 2009 also echo out the variables inside the mail function to ake sure they are being passed Quote Link to comment Share on other sites More sharing options...
Telessa Posted June 11, 2009 Author Share Posted June 11, 2009 Fixed the file was named html not php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.