alternative way not using param('userid')

Discussion in 'Perl' started by Carl Ogawa, Dec 27, 2003.

  1. Carl Ogawa

    Carl Ogawa Guest

    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');
     
    Carl Ogawa, Dec 27, 2003
    #1
    1. Advertisements

  2. Carl Ogawa

    Guest

    "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.
     
    , Dec 28, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Geathaa
    Replies:
    2
    Views:
    883
    Geathaa
    Jul 30, 2003
  2. ectoplasm
    Replies:
    12
    Views:
    902
    Zorro
    Jul 28, 2005
  3. Bogdan
    Replies:
    1
    Views:
    684
    Cowboy \(Gregory A. Beamer\)
    Mar 14, 2008
  4. Kam
    Replies:
    4
    Views:
    215
    Bob Barrows [MVP]
    Sep 4, 2006
  5. Varun Goel

    How to get userid using Net::LDAP

    Varun Goel, Jan 21, 2008, in forum: Ruby
    Replies:
    3
    Views:
    185
    David Morton
    Jan 22, 2008
  6. laredotornado
    Replies:
    2
    Views:
    178
    Rob Biedenharn
    Jan 24, 2008
  7. Joshua Muheim
    Replies:
    8
    Views:
    191
    Pit Capitain
    Aug 13, 2008
  8. Dave
    Replies:
    5
    Views:
    1,153
    John Bokma
    Apr 26, 2011
Loading...