Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Welcome to the Monastery
 
PerlMonks  

Re: Can't get CGI.pm to work

by olly (Scribe)
on May 24, 2001 at 23:01 UTC ( [id://83161]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Can't get CGI.pm to work

One of the great things about cgi.pm is that all the code remains the same whether you use get, post or something else small example Let's say you have a form with the fields name and email and you inlcuded some info in the link like this http://somewhere.com/index.pl?unique_id=1092384
to get name, email and unique id into vars you could use something like this.
#!/usr/bin/perl -w use CGI; my $q = new CGI; my $name = $q->param( "name" ); my $email = $q->param( "email" ); my $unique_id = $q->param( "unique_id" );
just name the thing inside the ( " " ) the same as the name of the field you want to get, that all for today!

Imagination is more important then knowledge -Einstein-

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83161]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.