in reply to How do i check a radio button in Perl?

I was actually printing $radio_search - test, to see if i was getting any value from the form. But as it turns out that wasn't the problem. The problem was that i had an image with a link to the search page, instead of submiting the page. To fix it i removed the link and added onClick="document.form.submit();" to the <\img\> and that worked. Thanks for your help and response.
  • Comment on Re: How do i chec a radio button in Perl?

Replies are listed 'Best First'.
Re: Re: How do i chec a radio button in Perl?
by earthboundmisfit (Chaplain) on Aug 08, 2001 at 20:08 UTC
    The JS method is ok, but what if users have JS turned off? You could also do <INPUT TYPE=IMAGE SRC="..." border=0 ALT="alt text">
      Good point, earthboundmisfit!

      It would be a good idea to use:
      <input type="image" src="..." border="0" alt="submit">


      because personally, I turn JS off many times, since I am not really impressed by everything JS can do... anyhow, it would be a good idea to choose to go this route rather than risk people not being able to use the button.

      Andy