
brian.hayes
User
Jan 30, 2000, 4:56 PM
Post #3 of 5
(325 views)
|
Also, CGI.pm offers some clean ways to get the user's input. Your form has a text box: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> <FORM method="post" action="program.pl"> <INPUT TYPE=TEXT name="name" SIZE=7> </pre><HR></BLOCKQUOTE> your script: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> #!/path/to/perl use CGI; my $q = new CGI; $name = $q->param('name'); ....more code........ </pre><HR></BLOCKQUOTE> now "name" will be what ever was sent to the script via a form. Let me know if this helps. Brian Hayes
|