mgmediaworks Posted July 23, 2007 Share Posted July 23, 2007 what am I missing..? i get the email ..but.. none of the fields..in my email.. i have a flash site.. have three fields.. name, email, and message.. but get nothing.... and how do I get it to come back to my www.queyano.com site once the form is submitted.. <? $to = "[email protected]"; $msg = "Name of sender: $name\n\n"; $msg .= "Sender's E-Mail Adress: $email\n\n"; $msg .= "Message from Sender: $message\n\n"; mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n"); ?> oh and since the form is called process...in my flash button parameter I have this.. on (release) { getURL("http://www.queyano.com/process.php", "", "POST"); } if this is to confusing.. who or where can I go to pay someone to edit my flash fields and make this little email form.. thanx Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/ Share on other sites More sharing options...
play_ Posted July 23, 2007 Share Posted July 23, 2007 Did you try making sure those variables hold a value? Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305270 Share on other sites More sharing options...
wrathican Posted July 23, 2007 Share Posted July 23, 2007 can i direct you to a flash php email form tutorial? you will most likely find your answer there. this is where i learnt how to do it, and refernce to when i need to do it again: http://www.kirupa.com/developer/actionscript/flash_php_email.htm Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305282 Share on other sites More sharing options...
Guardian-Mage Posted July 23, 2007 Share Posted July 23, 2007 aren't you suppose to have a subject field as well? Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305285 Share on other sites More sharing options...
GingerRobot Posted July 23, 2007 Share Posted July 23, 2007 Bit of a stab in the dark, but have you got the variables from the $_POST array? <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message' $to = "[email protected]"; $msg = "Name of sender: $name\n\n"; $msg .= "Sender's E-Mail Adress: $email\n\n"; $msg .= "Message from Sender: $message\n\n"; mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n"); ?> Also, to redirect: header("location:http://www.queyano.com"); Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305288 Share on other sites More sharing options...
wrathican Posted July 23, 2007 Share Posted July 23, 2007 from the look of what mgmediaworks posted, the actionscript of his flash movie is wrong you need to tell the flash movie where to send the variables by using the form.loadVariables tell it what file to send them to and by what method like this: form.loadVariables("email.php", "POST"); are you wanting it to show a html page? or a frame on the flash movie? Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305295 Share on other sites More sharing options...
LiamProductions Posted July 23, 2007 Share Posted July 23, 2007 Bit of a stab in the dark, but have you got the variables from the $_POST array? <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message' $to = "[email protected]"; $msg = "Name of sender: $name\n\n"; $msg .= "Sender's E-Mail Adress: $email\n\n"; $msg .= "Message from Sender: $message\n\n"; mail($to, $msg, "From: yourwebsite Form\nReply-To: $email\n"); ?> Also, to redirect: header("location:http://www.queyano.com"); Im not sure if that code works but on the 4th line you missed a '] Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305298 Share on other sites More sharing options...
GingerRobot Posted July 23, 2007 Share Posted July 23, 2007 Hmm, yes. More typos. I keep making those at the moment Link to comment https://forums.phpfreaks.com/topic/61324-email-form-help-almost-got-it/#findComment-305302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.