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 Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/ 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; } Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/#findComment-208841 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? Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/#findComment-208843 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. Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/#findComment-208846 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. Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/#findComment-208852 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 Link to comment https://forums.phpfreaks.com/topic/42998-check-user-came-by-_post/#findComment-208853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.