Know which POST (or GET) method variables are available with php
Very easy script for a very important need: handle all variables coming with POST or GET methods.
With this script you can manage all data coming for every kind of form.
1 2 3 4 5 | <?php foreach ($_POST as $varname => $varvalue) { echo "$varname -> $varvalue<br>"; } ?> |
This script prints all passed variables with their values.
There is nothing more to say, just remember that changing $_POST with $_GET you will list all GET variables instead of POST ones.















(2 votes, average: 4.00 out of 5)









This post has 2 comments
venkat
hi Emanuele ,
thanks for ur code, i have completed my task with ur small code but effective. ok have a beer(brand ur wish)on my name :)
once again thanx
VENKATA
Abe
Very useful :)