| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Flash PHP Form Promblem
Hello again
Ive made a flash site, and im trying to make an email/contact form work. I have 7 input boxes names (instance) email_box subject_box message_box message_box2 message_box3 message_box4 ive tried messing about with both the action script and php script but when i upload the site and enter text into all 7 boxes, when i check the email that was sent to me.. only one of the text fields is returning. Heres the action script code:------------------------------ stop(); System.useCodepage = true; send_btn.onRelease = function() { my_vars = new LoadVars(); my_vars.sender = email_box.text; my_vars.subject = subject_box.text; my_vars.message = message_box.text; my_vars.message2 = message_box2.text; my_vars.message3 = message_box3.text; my_vars.message4 = message_box4.text; if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") { my_vars.sendAndLoad("mailer.php", my_vars, "POST"); gotoAndStop(2); } else { error_clip.gotoAndPlay("send1"); } my_vars.onLoad = function() { gotoAndStop("send2"); }; }; ------------------------------------------------------------- Heres the action PHP code:--------------------------------- <?php $subject = $_REQUEST["subject"]; $message = $_REQUEST["message"]; $sender = $_REQUEST["sender"]; $message = $_REQUEST["message2"]; $message = $_REQUEST["message3"]; $message = $_REQUEST["message4"]; $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message; $message= $full_message; $message = stripslashes($message); $message = stripslashes($message2); $message = stripslashes($message3); $message = stripslashes($message4); $subject = stripslashes($subject); $sender = stripslashes($sender); $subject = "Contact form ". $subject; if(isset($message) and isset($subject) and isset($sender)){ mail("myemail@gmail.com", $subject, $message, "From: $sender"); } ?> ------------------------------------------------------------ the original code was off a template of a form with only 3 text input boxes: email_box subject_box message_box I copied one of the boxes 3 times, (because i needed more boxes) and renamed their instances to: message_box1 message_box2 message_box3 when i tested that with the original script (ac & php) without:: my_vars.message2 = message_box2.text; my_vars.message3 = message_box3.text; my_vars.message4 = message_box4.text; & without:: $message = $_REQUEST["message2"]; $message = $_REQUEST["message3"]; $message = $_REQUEST["message4"]; $message = stripslashes($message2); $message = stripslashes($message3); $message = stripslashes($message4); it only sent one field out of my 7 . im only starting off with ac and php, so i looked at both codes to see how i can get message_box2,3,4 to send the data to my email, i think added the above additions to the code. but still im not getting them, only one message box field is being sent. can someone help me please? i basically need this name: (example text= 11111) address: (example text= 22222) phone: (example text= 33333) mobile: (example text= 44444) email: (example text= 55555) order: (example text= 66666) comments: (example text= 77777) ______________________________________ as the code is now, the form my email is receiving is 86.42.166.248 66666 thats all. when i should be getting 11111 22222 33333 44444 55555 66666 77777 in my email or if anyone knows how to get the email with the title of the input box beside it, as this example from: customer@gmail.com to: myemail@gmail.com name:11111 address:22222 phone:33333 mobile:4444 email:5555 order:66666 comments:77777 anyway, hope anyone can help me out here best regards pangaea
__________________
Top RATED Girls on Cam Live ENJOY... |
![]() |
| Viewing: Tutorialized Forums > 2D Graphics > Flash > Flash PHP Form Promblem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|