Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Pass html selection to perl script

by hardburn (Abbot)
on Jun 16, 2003 at 18:10 UTC ( [id://266245]=note: print w/replies, xml ) Need Help??


in reply to Pass html selection to perl script

There is nothing special about passing params to Perl. You build your form in HTML, with the action attribute of the <form> tag pointing to the Perl CGI. Then, you use CGI to pull those parameters once the CGI has been called. Example:

use CGI qw(:standard); my $param1 = param('param1'); my $param2 = param('param2'); my $param3 = param('param3');

And so on.

See also: Ovid's CGI course (external link).

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found