Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^3: Perl-CGI refresh with different param(s)??

by 7stud (Deacon)
on Jun 20, 2011 at 21:20 UTC ( #910630=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Perl-CGI refresh with different param(s)??
in thread Perl-CGI refresh with different param(s)??

When a radio button is checked, the name/value pair for that specific radio button is sent to the cgi script. If a radio button is not checked, then nothing gets sent to the server for that specific radio button. So if you have nine radio buttons and the user checks the second radio button, then the second radio button's name/value pair will be sent to your cgi script. If you want to change that to make it appear that the user selected the eighth radio button, then remove the name/value pair for the second radio button from the url, and replace it with the name/value pair of the eighth radio button.

Comment on Re^3: Perl-CGI refresh with different param(s)??
Replies are listed 'Best First'.
Re^4: Perl-CGI refresh with different param(s)??
by jonc (Beadle) on Jun 20, 2011 at 21:29 UTC

    This sounds exactly like what I need to do... But say when the output comes, the URL doesn't have the name-value pairs appended to the end? Are they hidden there (maybe GET wasn't chosen)? How can I remove them in this case?

    Thanks a lot, I guess one troublesome aspect is I am not in charge of the HTML stuff, so I'm working only on the CGI script.

    Perhaps a combo of fetching the parameters and delete() will work?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://910630]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-11-29 12:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls