I am trying to make a form in PHP
, I used user ID to show data in form by GET, but after submitting form by POST i stored user ID in a hidden field..
While trying this i just became confused with GET
, POST
and REQUEST
.
See this situation
<form action="script.php?id=777" method="post">
ID: <input type="text" name="id" />
<input type="submit" value="Send" />
</form>
Let's suppose i enter '888' in text field
when this form will be submitted, what value $_REQUEST['id'];
should provide?
It will be same in all php versions
?
What will happen if I left text field blank?
and what will happen if I change action as action="script.php?id="
?