Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do I get data from a web form (the correct way)?

by andye (Curate)
on Dec 11, 2001 at 18:07 UTC ( [id://130927]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      use CGI qw/:standard/;
      print header,
    ...
             "Your favorite color is ",em(param('color')),
             hr;
       }
    
  2. or download this
       #!/usr/local/bin/perl -w
       use CGI;                             # load CGI routines
    ...
             $q->start_html('hello world'), # start the HTML
             $q->h1('hello world'),         # level 1 header
             $q->end_html;                  # end the HTML
    
  3. or download this
    my $query = new CGI;
    my $cheese = $query->param('cheese');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found