Click to See Complete Forum and Search --> : multiple page form, formatting info to html & text emails


novania
06-20-2005, 10:50 AM
I'm very new to PHP so forgive me. My boss is expecting miracles:

I have a form, first page is contact information. Then you click a next button (which I need to know how to send this info to the next page via variables)

Then on the next page, there's a table the customer fills out, and clicks submit.

So I need both the contact info, and table info (whcih I just used <input type=text ....> for) send to email in both HTML and txt format.

Thanks!

Novania

LiLcRaZyFuZzY
06-20-2005, 11:07 AM
First, you have to choose a method(POST/GET) then retrieve the postdata on the next page, like this

$variable_name = $_POST['input_tag_name'];
you could then pass it to the 3rd page via POST or GET again, using hidden fields
and retrieve it the same way on the final page and send it using the mail() function.

LiLcRaZyFuZzY
06-20-2005, 11:12 AM
and you would set the e-mail to be either html or plain-text by setting the header either to text/html or text/plain