chandrajit1988 Posted May 4, 2010 Share Posted May 4, 2010 .....OTHER LOC...... while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td><input name='check' type='checkbox' value='$row[tp_id]'>" . $row['tp_id'] . "</td>"; if($_POST['check'] == "ON") //ERROR LINE HERE { $query="UPDATE job_info SET $sel_tp=$row[tp_id]"; $sel_tp = $sel_tp + 1; while($sel_tp>5) echo("You have selected more than 5 Tradespersons"); } echo "<td>" . $row['email'] . "</td>"; echo "<td>" . $row['Rating'] . "</td>"; echo "</tr>"; } .....OTHER LOC.... WHY DOE IT SAY THAT 'CHECK' IS UNDEFINED WHEREAS I HAVE USED IT AS A NAME OF A CHECKBOX???? Link to comment https://forums.phpfreaks.com/topic/200696-undefined-index-check-in-cwampwwwabcdashboardstatus_newphp-on-line-69/ Share on other sites More sharing options...
Pikachu2000 Posted May 4, 2010 Share Posted May 4, 2010 If the form hasn't been submitted, the $_POST array doesn't exist yet. Link to comment https://forums.phpfreaks.com/topic/200696-undefined-index-check-in-cwampwwwabcdashboardstatus_newphp-on-line-69/#findComment-1053173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.