Re: verify file before linking to another
| From: | Jason Wong | Date: | Wed, 01 May 2002 18:04:51 +0000 |
| Subject: | Re: verify file before linking to another | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95555@lists.php.net to get a copy of this message | ||
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
*/