I am trying to pass some data from a form to another page. In the destination page I want to get the data with $_POST and check if the fields are filled or not .if a field is not filled , the it takes the value of zero . I am trying to do this with loop for because I have 32 form values but even if I write something to the fileds I always get the value of zero...The check code is here:
//check form fileds
for ($i=18;$i<=49; $i++) {
if (isset($_POST['r$i']))
$v[$i]=$_POST['r$i'];
else
$v[$i]="0";
}