I would like to get and display all variable names which are posted by method="post"
in a form. I am not aware of variables which passed from post method in HTML. Is there any method to list the all variables posted by post method ?.. Thanks in advance.
example: http://www.dhamu.in/oncreate2.php?workload=10&request_type=project&name=web%20design&description=we%20have%20done%20it&budget=1&bidperiod=11&project_guidelines=checked&job_113=1&xxxx=10 Here i do no the variable name "xxxx"
foreach ($_POST as $key => $value){
echo "{$key} = {$value}\r\n";
}
And BTW, those are $_GET
variables (so adjust the above to use foreach ($_GET as $key => $value){
.) You can also use $_REQUEST
to cover both.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With