The variable $HTTP_REFERER will tell you the origin of the request. So you can check it with:
if (EREG('xxx.php$',$HTTP_REFERER)) { //only look for the name file //process data } ------ or ------- if ($HTTP_REFERER=='www.yyy.com/path/xxx.php') { //look for the entire url //process data } *** where xxx.php is the url of the form source Hope it can help you any way. "Matt Babineau" <[EMAIL PROTECTED]> escreveu na mensagem 000d01c29af0$77e6d400$0210a8c0@webdevx">news:000d01c29af0$77e6d400$0210a8c0@webdevx... > What is the best way to check if a form is posted so people can't post > to my forms? I want to make sure that the post is coming from the right > page and that it is indeed a post operation. > > Thx, > Matt > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php