FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » error reporting (some one help me turn off error reporting)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
error reporting [message #39774] Thu, 29 November 2007 09:41
najim_ph is currently offline  najim_ph   Uganda
Messages: 1
Registered: November 2007
Karma: 0
Junior Member
Hello 2 u all

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

$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);

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


naj_tech

[Updated on: Thu, 29 November 2007 09:43]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: "Cleaning" POST/GET form variables
Next Topic: Ignore user interrupts
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 15:53:08 GMT 2024

Total time taken to generate the page: 0.02708 seconds