stupid girl! Posted July 23, 2007 Share Posted July 23, 2007 Hi all forgive the silly question but very very new to php i have created a contact form in flash for my website. On release 9in the actionscript) it calls for the form.php which looks something like this <? $to = "[email protected]"; $msg = "$name\n\n"; $msg .= "$message\n\n"; mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n"); ?> but when i try the form it doesnt submit to that email address can anyne help please? Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/ Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 If your using GET as a method, you will need to use... $msg = "{$_GET['name']}\n\n"; $msg .= "$_GET['message']}\n\n"; within PHP. Post uses $_POST. Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305363 Share on other sites More sharing options...
ViN86 Posted July 23, 2007 Share Posted July 23, 2007 you could use $_RETRIEVE as well. Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305372 Share on other sites More sharing options...
stupid girl! Posted July 23, 2007 Author Share Posted July 23, 2007 thanks guys for all that but tried all three actions and none worked! the form.php reads<? $to = "[email protected]"; $msg = "{$_RETRIEVE['name']}\n\n"; $msg .= "$_RETRIEVE['message']}\n\n"; mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n"); ?> in the flash contact form the submit button has the following code on (release) { if (name eq "" or email eq "" or query eq "" or message eq "" ) { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); } } Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305388 Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 There is no such variable as $_RETRIEVE in php. Use... <?php $to = "[email protected]"; $msg = "{$_POST['name']}\n\n"; $msg .= "{$_POST['message']}\n\n"; mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n"); ?> Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305394 Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 If that fails.. put this in form.php and post the output here. <?php echo '<pre>'; print_r($_POST); echo '</pre>'; ?> Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305397 Share on other sites More sharing options...
ViN86 Posted July 23, 2007 Share Posted July 23, 2007 There is no such variable as $_RETRIEVE in php. Use... <?php $to = "[email protected]"; $msg = "{$_POST['name']}\n\n"; $msg .= "{$_POST['message']}\n\n"; mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n"); ?> oooooops :-X i meant $_REQUEST sorry about that, my bad. Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305405 Share on other sites More sharing options...
stupid girl! Posted July 23, 2007 Author Share Posted July 23, 2007 Code: <?php echo '<pre>'; print_r($_POST); echo '</pre>'; ?> where do i put this and is this instead of the existing php ode Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305442 Share on other sites More sharing options...
trq Posted July 23, 2007 Share Posted July 23, 2007 where do i put this and is this instead of the existing php ode Use that instaed of the existing code, but its just for testing puposes, it wont send an email but will show us what is being sent from flash to php. Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305447 Share on other sites More sharing options...
stupid girl! Posted July 23, 2007 Author Share Posted July 23, 2007 put in the code and not sure where its supposed to show what the flash is posting to here is the source code of the page. sorry guys about this am totlaly new to php and obviously useless lol <!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=ISO-8859-1" /> <meta name="Description" content="So Webdesign offers cost effect web design packages for all business typels. Free web Hosting and domain name with all packages. We can give the elegance and sophistication your business needs" /> <title>SO Web Design - Affordable web design solutions for your business</title> <style type="text/css"> <!-- a:link { color: #DEDEDE; } a:hover { color: #CCCCCC; } body { } .style7 {color: #000000} .style16 {font-family: Tahoma} --> </style></head> <body> <table width="901" height="696" align="center" cellpadding="0" background="background.gif"> <tr> <td height="120" colspan="3"> </td> </tr> <tr> <td width="14" height="568"> </td> <td width="118" valign="top"><p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="118" height="260"> <param name="movie" value="flash/menu.swf" /> <param name="quality" value="high" /> <embed src="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="118" height="260"></embed> </object> </p> <p> </p> <p><span class="style7"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="175" align="right"> <param name="movie" value="frog.swf" /> <param name="quality" value="high" /> <embed src="frog.swf" width="170" height="175" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> </span> </p></td> <td valign="top"><table width="632" align="center" cellpadding="0"> <tr> <td width="626" height="50" valign="top"><div align="left"><img src="images/contact.gif" width="351" height="50" /></div></td> </tr> <tr> <td height="254" valign="top"><div align="justify"> <div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="410" height="360"> <param name="movie" value="form.swf" /> <param name="quality" value="high" /> <embed src="form.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="410" height="360"></embed> </object> </div> </div></td> </tr> </table></td> </tr> </table> </body> </html> Link to comment https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/#findComment-305456 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.