CGI select tag problem

I have a form with a select tag with months as options. I want to have a feature when the user changes the month in the select menu, the form will reload to the month selected. I don't know javascript. I'm only using perl and cgi. Can anyone help?

Thanks for your time,
X

Comments

  • : I have a form with a select tag with months as options. I want to
    : have a feature when the user changes the month in the select menu,
    : the form will reload to the month selected. I don't know javascript.
    : I'm only using perl and cgi. Can anyone help?

    Many ways to do this, here's just one of them.

    Put all the months in an array:-

    my @months = ('Jan', 'Feb', 'Mar') #You can do the rest!

    Then imagining that the posted form data is stored in a hash called form data...

    print ''
    foreach @months {
    print qq{$_";
    }
    print "

    Something like that.

    Jonathan

    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion