italia4fav Posted April 11, 2011 Share Posted April 11, 2011 So everything works except for the capture of whether or not the checkbox was checked. It works for the "Tour" variable, however I can only get it to work for one of the the other ones. Everything from tour to the end is a checkbox. Any idea on what I'm doing wrong? I think it has to do with "<td>" versus the "<tc>" but I really have no clue. Thanks while ($row = mysql_fetch_assoc($result)) { echo "<tr>"; echo "<td>".$row['Timestamp']."</td>"; echo "<td>".$row['First_Name']."</td>"; echo "<td>".$row['Last_Name']."</td>"; echo "<td>".$row['Prefer']."</td>"; echo "<td>".$row['Home']."</td>"; echo "<td>".$row['Phone']."</td>"; echo "<td>".$row['Email']."</td>"; echo "<td>".$row['Affiliation']."</td>"; echo "<td>".$row['Hear']."</td>"; echo "<td>".$row['Tour']."</tc>"; echo "<td>".$row['Dday']."</tc>"; echo "<td>".$row['SMS']."</tc>"; echo "<td>".$row['Annual']."</tc>"; echo "<td>".$row['OSS']."</tc>"; //echo "<td>".$row['Class']."</td>"; echo "</tr>"; } //end while ($row = // Free the resources associated with the result set // This is done automatically at the end of the script mysql_free_result($result); }//end if($result) }//end else if(!$db) ?> </form> </table></body></html> Quote Link to comment https://forums.phpfreaks.com/topic/233389-unsure-about-using-checkboxes/ Share on other sites More sharing options...
spiderwell Posted April 11, 2011 Share Posted April 11, 2011 whats with </tc> and </td> endings on cells? I never heard of </tc> Quote Link to comment https://forums.phpfreaks.com/topic/233389-unsure-about-using-checkboxes/#findComment-1200195 Share on other sites More sharing options...
italia4fav Posted April 11, 2011 Author Share Posted April 11, 2011 whats with </tc> and </td> endings on cells? I never heard of </tc> Haha well I actually don't know PHP programming. I'm mostly just replacing old information to update forms and whatnot. I can normally figure out what is going on but in this case it's just not working. The tc was really just a typo. Anyhow I found my mistake, I forgot to rename all the variables in one place. Thanks though. Quote Link to comment https://forums.phpfreaks.com/topic/233389-unsure-about-using-checkboxes/#findComment-1200201 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.