The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

If the submit button has not been pressed (ie. it's the first visit to the page) then produce the form fields.

If the form has been filled out and the page submitted, populate the appropriate areas with the details submitted.

Once all details have been verified as correct, submit the info again, but this time the script emails myself with the info and also emails the $email with the similar info but an extra paragraph or two and also reload the page with the submitted details, plus a thank you note.

My questions are:

I should do this all on the same page or not?

How do I differenciate between the first submit button and the second one?

How should I setup the script to send 2 different emails to me and the person that filled out the form?

If there is anything else you feel I should do with this script please post it here.

I suggest that you go thru Kevin's tutorial on building a database driven site using php and mysql.

It should solve your problem

I have read Kevins tutorial on PHP and MySQL along with the wrox book "Professional PHP Programming" and altough Kevins tutorial is extremely good, it's more geared towards setting up a joke of the day script.