How do I find the variables in _POST?
I know i can use _POST['variable'], but I don't know the names of the variables.
$_POST[$i] doesn't work.
Any ideas?
finding _POST variables
Moderator: General Moderators
Yeah, I know.
I was asking for a way of "finding" the variables in $_POST without knowing the names of them.
And not just .
I was asking for a way of "finding" the variables in $_POST without knowing the names of them.
And not just
Code: Select all
<?php
extract($_POST);
?>Sorry...
How about using this
How about using this
Code: Select all
<?php
while(list($key,$value) = each($_POST)) {
echo "Key Name: ".$key."\n Value of the key: ".$value;
}
?>