[UPHPU] Checkboxes and MySQL
Wade Preston Shearer
lists at wadeshearer.com
Tue Nov 28 11:59:03 MST 2006
> I'm sure that with PHP you can do as Nick writes
Ah, interesting. You are correct. I wasn't aware that you could
assign a value to a checkbox. Thanks.
Regarding your MySQL, Nicholas, no it is not complete. It appears
that you are starting with a condition to test whether the form has
been submitted. Testing against "submitted" won't work since there
are no variables with that value. This might simply be a typo
however, intended to be "submit". Next, inside your if, you are
looping through a foreach that creates a query for each checkbox.
Without knowing more about your database and the contents of
mysql_connect-local.php, the rest of it looks fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20061128/4074815e/smime.bin
More information about the UPHPU
mailing list