Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
I am able to access values of x and y through
use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use strict; my %form = (); print header; print title("Get Form"); print start_html(); print start_form(-method=>'GET',-action=>"abc.cgi?tarun=7&varun=8"); foreach my $p (param()) { print "$p<br>\n"; $form{$p} = param($p); print "$p = $form{$p}<br>\n"; } print submit; print end_form; print end_html;
But I want to modify this statement
print start_form(-method=>'GET',-action=>"abc.cgi?x=7&y=8");
in a way that it calls url with value of x = 7 and y = 8

If I replace word GET with POST, then also it doesn't give proper results on pressing submit button.

In reply to GET url by tarunkhanna

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.