Jump to content

Unsure about using checkboxes.


italia4fav

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/233389-unsure-about-using-checkboxes/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.