Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > alternative way not using param('userid')

Reply
Thread Tools

alternative way not using param('userid')

 
 
Carl Ogawa
Guest
Posts: n/a
 
      12-27-2003
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');


 
Reply With Quote
 
 
 
 
nobull@mail.com
Guest
Posts: n/a
 
      12-28-2003
"Carl Ogawa" <> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Classic - A way to open Win Explorer, or similar alternative Devin ASP General 1 10-10-2008 01:00 AM
way way way OT: MCNGP Announcement Neil MCSE 174 04-17-2006 05:55 PM
AMD Opteron: 1-way, 2-way, ... Up to 8-way. John John Windows 64bit 12 12-27-2005 08:17 AM
Quicktime Alternative, RealPlayer Alternative & Media Player Classic John Capleton Computer Support 3 12-05-2005 07:41 AM
Using of alternative checkbox layout Wilhelm Kutting HTML 2 10-02-2003 07:06 PM



Advertisments