deputy2468 Posted October 9, 2008 Share Posted October 9, 2008 Hi im a complete newbie and this is the first flash template ive messed about with. Its just the contact form thats stumping me, ive spent hours, i hope someone can help me My email form is half working but im only getting half the details through the name and email are blank when they come to my mailbox the phone, fax and message come though ok but then i have ' &777&Your message: ' at the end of each line thanks in advance Here is the script in flash rec="[email protected]"; serv="php"; var fields_descriptions= Array ("", Array("t1", "your_name", "Your full name:"), Array("t2", "your_email", "Email address:"), Array("t3", "telephone", "Your phone:"), Array("t4", "message", "Your message:"), Array("t5", "field_2", "Your fax:") ); for (i=1; i<=fields_descriptions.length; i++) { this["k"+i].text=fields_descriptions[i][2]; } Here is my contact.php <?php $your_name = $_GET['your_name']; $your_email = $_GET['your_email']; $your_phone = $_GET['telephone']; $your_message = $_GET['message']; $your_fax = $_GET['field_2']; $recipient_email = "[email protected]"; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "<html><head><title>Contact letter</title></head><body><br>"; $content .= "Name: <b>" . $your_name . "</b><br>"; $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; $content .= "Phone: <b>" . $telephone . "</b><br>"; $content .= "fax: <b>" . $field_2 . "</b><br>"; $content .= "Message: <b>" . $message . "</b><br>"; $content .= "<br></body></html>"; mail($recipient_email,$subject,$content,$headers); ?> <html> <body bgcolor="#282E2C"> <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold"> Your message was sent. Thank you. </div> </body> </html> <script>resizeTo(300, 300)</script> EDITed for code tags Link to comment https://forums.phpfreaks.com/topic/127734-contactphp-form-not-working-properly-in-flash/ Share on other sites More sharing options...
deputy2468 Posted October 12, 2008 Author Share Posted October 12, 2008 sorry about this but can anybody help? Link to comment https://forums.phpfreaks.com/topic/127734-contactphp-form-not-working-properly-in-flash/#findComment-663241 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.