or using session vars maybe?!
set a session var in the form PHP page. then, on the writetodb page check if
it is set..
only allow writing if the var is set...but checking referring URL should be
fine to..
thats my thoughts on it anyway..
-----Ursprungligt meddelande-----
Fr?n: Adam Lang [mailto:aalang@r...]
Skickat: den 4 mars 2002 17:39
Till: professional php
?mne: [pro_php] Re: execute a php document only after submit
Oooh... That could be a very good idea. Check to make sure the correct URL
was the referring one?
Didn't think of that. Anyone know of any issues with that?
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Nopphapadol" <nop@p...>
To: "professional php" <pro_php@p...>
Sent: Monday, March 04, 2002 11:44 AM
Subject: [pro_php] Re: execute a php document only after submit
> Hi,
> My idea you want users to browse the HTML file before
> the writetodb.php, Right ? I thought my idea maybe not
> the exacly you want but let's try
> Check $HTTP_REFERER it should contain the name of the
> HTML file.r ( I am using Apache on Linux)
>
> Nop,
> Thailand.