Hi,
I am posting variables to a new page,i have n variables
like $_POST[s1],$_POST[s2],....
i want to update my database but i could not write the variable names in a for loop
for ($i=1;$i<=;$count){
$startDate=$_POST["s".$i];
}
but did not work
in fact i dont know how to write variable name as a variable, can anyone help me?
I am posting variables to a new page,i have n variables
like $_POST[s1],$_POST[s2],....
i want to update my database but i could not write the variable names in a for loop
for ($i=1;$i<=;$count){
$startDate=$_POST["s".$i];
}
but did not work
in fact i dont know how to write variable name as a variable, can anyone help me?