I have a form with radio buttons in it. If someone doesn't check it I am getting an error.
Notice: Undefined index: newsubscience in /www/content/nasa/html/_test/live_test/signup.php on line 213
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="radio">Math<br />
<input name="newsubscience" value="Science" type="radio">Science<br />
<input name="newsubsocial" value="SocialScience" type="radio">Social Science<br />
<input name="newsublang" value="Languagearts" type="radio">Language Arts<br />
<input name="newsubtech" value="Technology" type="radio">Technology<br />
<input name="newsubspecial" value="Specialed" type="radio">Special Ed <br />
<input name="newsubgifted" value="Gifted" type="radio">Gifted<br />
<input name="newsubother" value="Other" type="radio">Other<br />
</td>
</tr>
I don't want the error. I am not expecting someone to check it if it isn't relavant.
What Am I not thinking of here?
Thanks!
Tim