Hi,
I have a competition form that is one file which works as multiple pages (if (!isset($pageno)) etc)
Step one is the form fields. Step two notifies the submitter that the data is being dumped to db, and in the background the grabbed data is dumped to db. This page then refreshes to step 3 which thanks the competitor for taking part, and advises them they will be emailed a validation link. In the background I have PHP that emails them.
This all works fine, except for the fact that the email cannot pick up the $id and $name fields from the db to add to the email body, because I cannot figure how to get the correct entry from the db.
Do I do this using sone form of get last id? Will that work (i.e what if 2 ppl apply at same time) or would I be better off using sessions or cookies?
Any help appreciated.