Possible Duplicate:
PHP $_POST print variable name along with value
I have a form (whatever number of fields).. this form will send $_POST data.. I want to return every $_POST variable value and name.
I wanna do soemthing like this :
foreach($_POST as $field){
//****some code*****//
}
in a way that will display the fields and values like this:
name : Simo Taqi
email : example@ymail.com
in other words :
if I have a post variable : $_POST['city']='las vegas'
I want to know how to get the name of the variable : 'city'.