Re: Form help
| From: | darion mapp | Date: | Thu, 22 Mar 2001 19:31:52 +0000 |
| Subject: | Re: Form help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45171@lists.php.net to get a copy of this message | ||
why don't you check to see is a variable was passed to the page. If you use the post method
then a hidden field can be used o check that the user did come from the application page.
a sample of the check will be
if(!$var_from_previous_page)
{
header("location: application.php");
}
--
On Thu, 22 Mar 2001 14:34:21
Good Fella wrote:
>Hi All,
>
>I currently have a small problem with my PHP form. I have made two PHP
>files (application.php and process_application.php).
>
>On submitting the form, you then move to process_application.php. Any
>errors will force the form NOT to be submitted to me.
>
>However, how do I stop people from accessing process_application.php
>directly? You can still type in the URL of this address without filling in
>any details.
>
>Although it serves up an error, is there anyway I can prevent people from
>getting to this page unless they press "Submit" on the actual form on
>application.php?
>
>Thanks,
>
>SK
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
Get 250 color business cards for FREE! at Lycos Mail
http://mail.lycos.com/freemail/vistaprint_index.html