|Pathologically Eclectic Rubbish Lister|
Perl-CGI refresh with different param(s)??by jonc (Beadle)
|on Jun 20, 2011 at 19:37 UTC||Need Help??|
jonc has asked for the
wisdom of the Perl Monks concerning the following question:
Hello and thanks for your time,
I have a Perl script that is called when a user selects some "radio" buttons and enters a searchword in text. When the output is returned, I would like to provide the user some hyperlinks that will allow them to redo the search with different radio buttons pressed (without having to go back and do it manually). The same searchword (inputted 'query') is to be used.
Example Perl script:
Say, the first time, $c_enabling was 'on'. I would like a hyperlink to a search where $c_subject is 'on' but $searchkey is the same.
I've read the CGI module on CPAN (url() or self_url), and a bit about POST and GET, but it is all new to me.
Thanks again, and let me know if this is unclear
Also, this has been extended(I'm sorry, I didn't know this was discouraged, I thought starting fresh would be better for a second opinion) at: http://stackoverflow.com/questions/6418292/how-do-i-substitute-unseen-name-value-pairs-from-radio-buttons-in-my-cgi-script