469,603 Members | 2,069 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

alternative way not using param('userid')

The following will stop to open test.pl due to using param('userid') and
param('pwd').
Is there an alternative way to get data from HTML file to CGI file? I have
to do this in the particular situation.
-------- html file ---------
<form name = "form3" action = "http://localhost/scripts/test.pl" method =
post>
Name: <INPUT TYPE = text NAME = "userid" size=25 value="OGAWA"><p>
Password: <INPUT TYPE = password NAME = "pwd" size=12 ><p>
<input type = submit value = "Submit">
</form>
--------- cgi file (test.pl) ------ ActivePerl 5.8 --------------------
#!/usr/local/bin/perl

use CGI qw(:standard);
my ($user, $passwd);
$user = param('userid');
$passwd = param('pwd');
Jul 19 '05 #1
1 3793
"Carl Ogawa" <jd******@comcast.net> wrote in message news:<jQeHb.148704$8y1.436413@attbi_s52>...
The following will stop to open test.pl due to using param('userid') and
param('pwd').
Is there an alternative way to get data from HTML file to CGI file? I have
to do this in the particular situation.
It is totally unclear what is "this" and what is "the particular
situation".

The only way that user interaction with an HTML document (not
containing client side scripts) can communicate to something on the
HTTP server is to generate an HTTP request via a link or a form
submission. This has nothing to do with Perl (or indeed CGI) - it has
only to do with HTTP and HTML.

I suspect whatever it was you were trying to ask has nothing whatever
to do with Perl.

Random shot in the dark: The protool HTTP has a basic authentication
mechanism.
-------- html file ---------
<form name = "form3" action = "http://localhost/scripts/test.pl" method =
post>
Name: <INPUT TYPE = text NAME = "userid" size=25 value="OGAWA"><p>
Password: <INPUT TYPE = password NAME = "pwd" size=12 ><p>
<input type = submit value = "Submit">
</form>
--------- cgi file (test.pl) ------ ActivePerl 5.8 --------------------
#!/usr/local/bin/perl

use CGI qw(:standard);
my ($user, $passwd);
$user = param('userid');
$passwd = param('pwd');


This newsgroup does not exist (see FAQ). Please do not start threads
here.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by ratnakarp | last post: by
7 posts views Thread by Mark Waser | last post: by
3 posts views Thread by ILaughLouder | last post: by
1 post views Thread by shrik | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.