On Wednesday 01 May 2002 23:45, Jas wrote: > I am wondering if there is a good tutorial or example of code on how to > verify that a page has been hit before linking to the next. For example > say you have a form, the form once all fields have been filled links to a > confirmation page then from there it links to a thank you page which > inserts data to a text file, how can one verify that someone is not just > typing in the name of the last page and therefore inserting a blank entry > into the text file? Any help would be great.
With php you can do all that using a single page. Rough outline: if (no form data submitted) { display_form(); } else if (not confirm) { display_confirmation(); } else { display_thankyou(); } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* There's no trick to being a humorist when you have the whole government working for you. -- Will Rogers */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php