beginning_php thread: problem with checkboxes in chap3
Message #1 by "nunu" <nunu_tok@h...> on Sun, 20 Oct 2002 17:33:51|
If i didn't check all the boxes, it appear messages :
Notice: Undefined variable: Choice2 in c:\inetpub\wwwroot\checkboxes.php on
How can I handle this problem ?
<FORM METHOD=POST ACTION="checkboxes.php">
Have you ever eaten haggis before?
<INPUT NAME="Choice1" TYPE="Checkbox" VALUE="Haggis">
Have you ever eaten snails before?
<INPUT NAME="Choice2" TYPE="Checkbox" VALUE="Snails">
Have you ever eaten locusts before?
<INPUT NAME="Choice3" TYPE="Checkbox" VALUE="Locusts">
Message #2 by tekronx@a... on Mon, 21 Oct 2002 01:53:52|
Once again many people have the same problem with the same answer which I
had the same problem with the same answer ask yourself this
Did you go into the php.ini and set register_globals to on
it should look like this
; You should do your best to write your scripts so that they do not
; register_globals to be on; Using form variables as globals can easily
; to possible security problems, if the code is not very well thought of.
register_globals = on
it is under this section
; Data Handling ;
Hope this works let me know :)