In a PHP page, is it possible for it to reject/detect the type of data submitted to it?
I am writing a page that accepts form field values from another page, however, I have seen that the GET method allows you to change the information. I want to prevent this and only allow my page to accept data submitted using the POST method.
So, if the page was being called like this:
mypage.php?usernam=ashman&password=love
The page mypage.php would reject the values in username and password.
Question
AshMan
In a PHP page, is it possible for it to reject/detect the type of data submitted to it?
I am writing a page that accepts form field values from another page, however, I have seen that the GET method allows you to change the information. I want to prevent this and only allow my page to accept data submitted using the POST method.
So, if the page was being called like this:
mypage.php?usernam=ashman&password=love
The page mypage.php would reject the values in username and password.
Thanks.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts