HELP - insert a form array into mysql
Posted: Wed Oct 28, 2009 10:03 am
I have been trying to find the right way to do this...
I have a form where you can select one or many subjects...
I wanted to use a single cell but couldn't figure it out. The code above actually was a thought that I should push each one into its own cell. But that was giving me defined errors, which I haven't figure out. yet either.
How can I write the form and the php to insert into a mysql.
Any help is appreciated!!!
Thanks
Tim
I have a form where you can select one or many subjects...
Code: Select all
<tr>
<td align="right" style="vertical-align:top;"><p>Subject Areas Taught</p></td>
<td style="vertical-align:top;">
<input name="newsubmath" value="Math" type="checkbox">Math<br />
<input name="newsubscience" value="Science" type="checkbox">Science<br />
<input name="newsubsocial" value="SocialScience" type="checkbox">Social Science<br />
<input name="newsublang" value="Languagearts" type="checkbox">Language Arts<br />
<input name="newsubtech" value="Technology" type="checkbox">Technology<br />
<input name="newsubspecial" value="Specialed" type="checkbox">Special Ed <br />
<input name="newsubgifted" value="Gifted" type="checkbox">Gifted<br />
<input name="newsubother" value="Other" type="checkbox">Other<br />
</td>
</tr>How can I write the form and the php to insert into a mysql.
Any help is appreciated!!!
Thanks
Tim