hi all
my code
for ($i=0; $i<count($_REQUEST['checkbox']);$i++) {
$values .= $i. " ". $_REQUEST['checkbox'][$i]."<br> ";
}
outputs as
0. battery
1. car
2. scooter
3. helmet
but i want to start the counting from 1 instead of 0.
if i write
for ($i=1; $i<count($_REQUEST['checkbox']);$i++) {
$values .= $i. " ". $_REQUEST['checkbox'][$i]."<br> ";
}
then first result gets deleted which is serial number 0.
what should i do
vineet