I have a dynamic form that that creates input variables named different
things based on what it reads from the database.
So, for example, it may create three fields, named ex12, ex23, and ex45
respectively, and send those fields and their values via POST to a PHP
page.
So these would be sent basically:
$_POST['ex12'] which may equal "cow".
$_POST['ex23'] which may equal "cat".
$_POST['ex45'] which may equal "dog".
Now, I can easily count how many variables are sent using count($_POST)
and know that 3 variables were sent. The question is, how to I
determine what the names of the variables are? How do I determine if
sent were ex12, ex23, and ex45 as opposed to ex4, ex25, and ex65?
--
[ Sugapablo ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ sugapablo@12jab ber.com <--jabber IM ]
things based on what it reads from the database.
So, for example, it may create three fields, named ex12, ex23, and ex45
respectively, and send those fields and their values via POST to a PHP
page.
So these would be sent basically:
$_POST['ex12'] which may equal "cow".
$_POST['ex23'] which may equal "cat".
$_POST['ex45'] which may equal "dog".
Now, I can easily count how many variables are sent using count($_POST)
and know that 3 variables were sent. The question is, how to I
determine what the names of the variables are? How do I determine if
sent were ex12, ex23, and ex45 as opposed to ex4, ex25, and ex65?
--
[ Sugapablo ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ sugapablo@12jab ber.com <--jabber IM ]
Comment