warrenlyle
asked on
php array from input hidden
Is it possible to grab a bunch of values from an html page, put them in a hidden,
and then have a php script process the value of the hidden like
foreach ($hiddenArray as $var) {
}
and then have a php script process the value of the hidden like
foreach ($hiddenArray as $var) {
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!!
no problem :)
|)iablo
|)iablo
example
<input type="hidden" name="iput[]" value="something">
<input type="hidden" name="iput[]" value="something else">
<input type="hidden" name="iput[]" value="another thing">
<input type="hidden" name="iput[]" value="one more thing">
then on the processing page
$hiddenArray = $_POST['iput'];
foreach ($hiddenArray as $var) {
//do something with each value
}