in reply to cgi popup_menu cant take 0

This is generating the code fine. I get
<input type="radio" name="complete" value="1" />Yes <input type="radio" name="complete" value="0" />No <input type="radio" name="complete" value="-1" />N/A
which looks correct.

My guess is that the problem lies in the script that recieves the data. Do you by any chance have something like this in that script: if($q->param('complete')) because in that case it will return 0 and not enter the if. If this is that case try using if(defined $q->param('complete'))

Replies are listed 'Best First'.
Re: Re: cgi popup_menu cant take 0
by tbone (Beadle) on Aug 22, 2003 at 16:56 UTC
    Thanks guys...I'm an idiot. tcf22, I did exactly what you said with regards to the if statement. Thanks again.