msomanat has asked for the wisdom of the Perl Monks concerning the following question:
I have two problems here. 1) I cannot pass a variable. $1 won't work 2) If I pass it hardcoded, it would work, but the variables after 'perforce?' are not considered, until I refresh the newly opened page. This is my first CGI script,and need your help badly. Thanking in advance, Manojprint $q->start_form( -name => 'main_form2', -method => 'POST', -action => 'http://xxx.com/cgi-bin/perforce?&Submit=describe&changenu +m=$1', -target => '_blank', ); print $q->submit( -name => 'submit_form2', -value => 'See the change', ); print $q->end_form;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to open an URL with variable in CGI?
by 1nickt (Canon) on Jul 27, 2015 at 20:52 UTC | |
|
Re: How to open an URL with variable in CGI?
by tangent (Parson) on Jul 27, 2015 at 20:53 UTC | |
|
Re: How to open an URL with variable in CGI?
by marinersk (Priest) on Jul 27, 2015 at 23:26 UTC |