retrieving values form $_POST using loop
Posted: Sun Feb 15, 2009 7:17 am
Hi,
I am trying to access the variables through POST from an html post by using
$a=$_POST['a1'];
works fine.
Actually i have the vaiables from a1 to a28 getting posted from the html page. Is there any way I can use something like """ $a=$_POST['a'$i];""" ?? I want to read the $_POST array using a loop.
Eg.,
for ($i = 28; $I >=0; $i--)
{
$a=$_POST['here I want to substitute $i for a1, a2, a3...'];
}
Any help will be highly apreciated;
Many thanks in advance
Ushas Symon
I am trying to access the variables through POST from an html post by using
$a=$_POST['a1'];
works fine.
Actually i have the vaiables from a1 to a28 getting posted from the html page. Is there any way I can use something like """ $a=$_POST['a'$i];""" ?? I want to read the $_POST array using a loop.
Eg.,
for ($i = 28; $I >=0; $i--)
{
$a=$_POST['here I want to substitute $i for a1, a2, a3...'];
}
Any help will be highly apreciated;
Many thanks in advance
Ushas Symon