magnetica Posted March 16, 2007 Share Posted March 16, 2007 Hi How do i check that a user came to a page by a $_POST? If you need more of a dexcription then please reply Thanks, Sean Quote Link to comment Share on other sites More sharing options...
interpim Posted March 16, 2007 Share Posted March 16, 2007 if (!isset $_POST['var']){ You didn't come by $_POST; }else{ You came by $_POST; } Quote Link to comment Share on other sites More sharing options...
magnetica Posted March 16, 2007 Author Share Posted March 16, 2007 Ok sorry! I know how to check if a variable is set but i want to simply check whether the user came by $_POST without having to check the super global array Is this information in the HTTP header info? Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 16, 2007 Share Posted March 16, 2007 i would use sessions instead of post to keep track of this particular type of data. Quote Link to comment Share on other sites More sharing options...
per1os Posted March 16, 2007 Share Posted March 16, 2007 http://us3.php.net/manual/en/function.apache-request-headers.php It would be in a header of some type. Quote Link to comment Share on other sites More sharing options...
magnetica Posted March 16, 2007 Author Share Posted March 16, 2007 Cheers frost! I got it now and just need to check the referer was the right one. Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.