Know which POST (or GET) method variables are available with php
- June 1, 2006 by Emanuele Feronato
- Filed under Php, Tutorials | 2 Comments
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 Responses
Leave a Reply
TUTORIAL SERIES:
- Una guida completa al gioco del poker online e una selezione dei migliori casino online.
- casino online
- migliori casino online
- BlackJack online
- casinò online



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
Very useful :)