PDA

View Full Version : Mail Contact Form (PHP)


garion1
04-23-2003, 06:57 AM
Hi. I am using Flash 5.

I need to expand the Mail Contact Form displayed in the tutorials section.

If you know PHP, I'm sure this will be easy.

The tutorial has three fields/variables: $subject, $message and $from.

I need eight fields/variables to be displayed as follows:

Firstly, I need it to go to two E-mail addresses.

The subject field must be set in the PHP text file and not editable on the contact form.

Then, I have seven separate fileds to fill out. all must appear in the body of the E-mail. In other words, I have fields/variables $message1, $message2, $message3 etc. all to be placed in the body of the E-mail when it is sent.

The last field is easy, just like the tutorial. $from field where the person enters their E-mail address.

I have the Actionscript figured out. I just need to know how to structure the PHP file. I know that it is literally one or two more lines than the tutorial script.

Please help!

Caimin
04-28-2003, 11:58 AM
You can add variables together like this...


$yourVar = $message1 . $message2 . $message3;


Is that any help?

garion1
04-28-2003, 02:29 PM
I sorted my problem out through a little bit of self-study.

My mailer works beautifully. I will be posting an "Advanced Mail Contact Form" tutorial shortly.

Cheers