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 = "sandro@mgmediaworks.com"; $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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 = "sandro@mgmediaworks.com"; $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"); Quote Link to comment 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? Quote Link to comment 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 = "sandro@mgmediaworks.com"; $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 '] Quote Link to comment 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 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.