form location verification

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drew78
Forum Newbie
Posts: 2
Joined: Thu Jul 24, 2003 7:08 am

form location verification

Post by drew78 »

Well....

I would like to know from where the user is posting the form. I want to restrict them to only use the forms on my page in order to prevent miss-usage.

So far I have tried to use $_SERVER["HTTP_REFERER"] and search for the page-url, and that worked in my case. Now I have seen that lots of users have an empty string in the above variable... :(

Have anyone done this kind of verification with PHP? Can you give me a hint on how to proceed?

Thankx in advance!
//Drew


?>
Post Reply