FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
error reporting
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=39774&th=9678#msg_39774
God!!
at last i can get help from the programmers over here..
wel, i have an html basic form that has check boxes and radio buttons when i procees this form with php script (the script sends form data to an email) i get a notice "undefined index" when i submit the form without checking one of these options. Am just too new to programming with php but hop to get some help from here.
Portion of my basic html form "option buttons
---------------------------------
<input name="sex" type="checkbox" id="sex" value="Male" />
Male
<input name="sex" type="checkbox" id="sex" value="Female" />
Female
---------------------------------------
and also "check boxes"
------------------------------
<input type="checkbox" name="pro_asgmt" value="Teaching in primary school" />
Teaching in primary School<br />
<input type="checkbox" name="pro_asgmt" value="Child care and outreach" />
Child care and Outreach/Mobile Clinic<br />
<input type="checkbox" name="pro_asgmt" value="Hiv/Aids Prevention" />
HIV/AIDS Prevention and Counseling<br />
<input type="checkbox" name="pro_asgmt" value="Poverty eradication program" />
Poverty eradication program</td>
<td class="main_form" width="273">
<input type="checkbox" name="pro_asgmt" value="Community Development" />
Community Development<br />
<input type="checkbox" name="pro_asgmt" value="Econ sustain'g agric program" />
Economic Sustaining Agricultural program<br />
<input type="checkbox" name="pro_asgmt" value="Civil peace program" />
Civil Peace Program<br />
<input type="checkbox" name="pro_asgmt" value="Child resettlement program" />
Child resettlement Program</td></tr>
---------------------------------
in both cases they are all required fields.
when i used this php code on my localhost
the error dont appear but when i publish on the internet i get the error reporting if fields are not supplied.
check out url: agapeuganda.org/volunteer.htm ]]>najim_ph2007-11-29T09:41:21-00:00