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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.