good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi, When you fill out a form, and click submit, the form sends name/value pairs for each form input element to the url specified in the form's action attribute. If the form specifies method="get", then the name/value pairs are tacked onto the end of the url specified in the form's action attribute. For instance:
The name value pairs are in this part:
Note that the name value pairs are separated by '&', and the whole series of name/value pairs is tacked onto the end of the url with a '?'. If you want to provide links (= a tags) for your users with different name value pairs, then you can construct the url's with the desired name value pairs yourself. For instance:
The CGI.pm module allows you to use print() to send the html to the browser that you want the browser to display. So to display a link with the above url, you would do this: Note that CGI.pm has some shortcut functions to print the doctype( header() ); the html, head, and opening body tag( start_html() ); etc. In reply to Re: Perl-CGI refresh with different param(s)??
by 7stud
|
|