View Full Version : sending multiple variables thru Flash form thru PHP to specified email

07-21-2004, 06:23 PM
I am making my first form in Flash 5. It comprises of several one line text fields (subject, first_name, last_name, company, country, city, area of interest, email) and a multi-line text field (comments). I read through the tutorial at http://www.actionscripts.org/tutorials.shtml - intermediate level, tutorial 06 (PHP mail form in Flash)and I spent quite a bit of time unsuccessfully trying to adapt this code to my form;
I altered the script that gos into the PHP document by writing the following and saving it as a PHP3 file:

<?php mail("[email protected]", $subject, $message, $first_name, $last_name, $company , $country, $city, $discipline,"From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());

I created my own form, including the text input fields in my first frame, naming the input text fields by their corresponding variables listed above (subject, first_name etc...). - and placed the thank you confirmation in the second frame. I also copied his exact script (top of page http://www.actionscripts.org/tutorials/intermediate/php_send_mail/index3.shtml) into my first frame (it simply converts paragraph marks from Flash to PHP for the multi-line text input)
and the following code:

on (release) { if (subject eq "" or message eq "" or from eq "") { stop (); } else { lineAdapt(); loadVariablesNum ("mail.php3", 0, "POST"); gotoAndStop (2); }}

attached to my button. I place the PHP file in the same location as my Flash file

the 3 problems are the following:
1. I am not receiving email.
2. When the user fills out the last field in my form, the writing is illegible.
3 In some fields the writing is bold, in others, it isn't.
4. The confirmation page works erratically

Can someone please please PLEASE take a look at my file and tell me what the problem is. The site is www.lv-em.com/form.html.

Thank you in advance!