Re: PERL CGI Script Responding to Link
- From: Joost Diepenmaat <joost@xxxxxxxxx>
- Date: Sat, 29 Dec 2007 18:24:30 +0100
"Dr. Leff" <mflll@xxxxxxx> writes:
I wrote a web site in Perl CGI. One of the familiar tasks in many
web sites
is validating new users. Traditionally, they enter their email,
desired login
and password. The system sends a confirmation email with a link on
which
to click. The user checks their email, clicks and the system knows
they
are a "real" person.
My web systems send a message like this after the user enters their
desired
login, email address and the demographic information we want:
I aped the format used when one clicks
the submit button on a form.
<A href="http://www.wiu.edu/users/mflll/2/confirm.scgi?C=tic5any&L=c">
Please click here to confirm your login or go to
http://www.wiu.edu/users/mflll/2/confirm.scgi?C=tic5any&L=c</A>
__________________________________________________________________________
But, when I click on it, it calls confirm.scgi as we expect.
Unfortunately, the parameters are not
passed in the standard input.
That's because parameters in the URL are not sent to a CGI script via
STDIN since they're not in the /body/ of the HTTP request. See the CGI specs.
RFC 3875, section 4.1.7 in particular.
In general, though, you're /much/ better off using the standard CGI
module since it automatically handles this issue and much more.
http://perldoc.perl.org/CGI.html
HTH,
Joost.
.
- References:
- PERL CGI Script Responding to Link
- From: Dr. Leff
- PERL CGI Script Responding to Link
- Prev by Date: PERL CGI Script Responding to Link
- Next by Date: Re: Problem about type glob reference
- Previous by thread: PERL CGI Script Responding to Link
- Next by thread: Re: PERL CGI Script Responding to Link
- Index(es):