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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


Get 250 color business cards for FREE! at Lycos Mail
http://mail.lycos.com/freemail/vistaprint_index.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to