Help with drop down list
Posted: Wed Oct 22, 2008 3:09 am
Hi Friends,
I want to get the value into '$txt' from an array of hidden fields named 'hd' . I tried the following code...it's not working
for($i=0;$<10;$i++)
{
<input type ="hidden" name="hd $i" value ="$i">
}
$txt = array();
for($i=0;$<10;$i++)
{
$txt[$i] = $_GET['hd'.$i];
echo $txt[$i]."<br>";
}
Any help will be greatly appreciated
I want to get the value into '$txt' from an array of hidden fields named 'hd' . I tried the following code...it's not working
for($i=0;$<10;$i++)
{
<input type ="hidden" name="hd $i" value ="$i">
}
$txt = array();
for($i=0;$<10;$i++)
{
$txt[$i] = $_GET['hd'.$i];
echo $txt[$i]."<br>";
}
Any help will be greatly appreciated