"Scott R. Godin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a multi-stage cgi I'm currently working on, and as I progress thru
the
> stages (the form uses POST not GET for reasons of data-size) I was hoping
to be
> able to simply add ?step=confirm or ?step=finish to the form action
> ( -action=>"$htmlform{action}?step=confirm", ... )
>
> However it's not working, and I'm getting the distinct impression that
when the
> action is a POST, CGI.pm ignores anything WRT the uri request line...
>
> Is this true?

You could refer to the CGI.pm docs, specifically the part about mixing POST
and URL parameters:

http://search.cpan.org/~lds/CGI.pm-3.11/CGI.pm#MIXING_POST_AND_URL_PARAMETERS

if ($q->url_param('step') eq 'confirm' ) {
  ...
}

or put the step parameter in a hidden field in the html form:

<input type="hidden" name="step" value="confirm" />

You may also want to check out CGI::Application, it makes quick work of what
you are trying to do.

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to