I have a form whereby someone fills in their details and it is passed to the next page which then updates an SQL database and gives them the standard 'Thanks' message.
However, I've become aware that this is very insecure because someone could make up their own form on a server and fire any info they wanted to my update page.
So my question is this...
Is there a way that I can check the URL of the previously visited page on my update page. Then I can make sure they came from my form.
I know you can do it in perl with the environment variables but I'm new to PHP and not sure of the syntax etc. Any help would be appreciated. Also do you know of any other security holes in a system like this?
Cheers
Johnny T I don't make mistakes, I'm merely beta-testing life.
However, I've become aware that this is very insecure because someone could make up their own form on a server and fire any info they wanted to my update page.
So my question is this...
Is there a way that I can check the URL of the previously visited page on my update page. Then I can make sure they came from my form.
I know you can do it in perl with the environment variables but I'm new to PHP and not sure of the syntax etc. Any help would be appreciated. Also do you know of any other security holes in a system like this?
Cheers
Johnny T I don't make mistakes, I'm merely beta-testing life.