I have the below on my page...
<tr>
<td>Tick Box</td><td><input type="checkbox" name="tickbox" value="yes"></td>
</tr>
and want to do something like the below
if (tickbox is ticked) {do something😉
else {don't}
How would I do this?
I mean for the rest of the table its just some input boxes and a pull down menu, and that is all inserted to the db, but I have 4 checkboxes and depending on which are ticked, things are inserted, ie if tickbox1 is ticked, then table1 gets then the username inserted, if tickbox2 gets ticked, then the username gets inserted into table2
I hope that makes sense, I imagine its gotta be a simple problem to solve, but I have no idea how!
Thanks anyone