Hello!
I'm working on one script for getting the ratings. One part of seems not to work properly:
$output .= "<tr class='ntext'>
<td colspan='3' bgcolor='$bgcolor'>".$row["student_name"]."</td>
<td bgcolor='$bgcolor' height='24' align='center'>
<INPUT TYPE='HIDDEN' name='id[".$coach_id."]' value='".$coach_id."'>
<INPUT TYPE='HIDDEN' name='ratings[".$rating_id."]' value='$rating_id'>\n";
Coach_id is retrieved from the database.
It seems that the arrays "id" and
"ratings" don't get any values. And therefore after submitting i get this error for the mentioned above line:"Warning: Invalid argument supplied for foreach() in..."
It seems that the problem might be that i shouldn't use double quotes for example here:name='id[".$coach_id."]'
I tried without them, it didn't help.
So i'm lost now. Anyone can give an idea what might be the trouble?