Always show Notice: Undefined index:?
Posted: Fri Jul 25, 2003 9:54 am
Hi all,
I am a newbie in PHP, so i mught sound a bit stupid hope you guys dont mind.
I have a form with some checkbox,radio button and textfield,
Whenever a checkbox or radio button is untick or no value, i will get
Notice: Undefined index: gender in c:\script.php on line 17
but whenever i tick it the notice will be gone.
whereas for textfield, even if it is left empty no Notice will be shown.
Thanks for any help, sorry for any inconvenience.
I am a newbie in PHP, so i mught sound a bit stupid hope you guys dont mind.
I have a form with some checkbox,radio button and textfield,
Whenever a checkbox or radio button is untick or no value, i will get
Notice: Undefined index: gender in c:\script.php on line 17
but whenever i tick it the notice will be gone.
whereas for textfield, even if it is left empty no Notice will be shown.
Thanks for any help, sorry for any inconvenience.