Thread: Perl
View Single Post
Old 09-23-2006, 01:32 PM   #1 (permalink)
kwokwai
 
True Techie

Join Date: Sep 2006

Posts: 168

kwokwai

Default Perl

I am writing my first PERL to read data from a form.


<form name="user" method="post" action="cgi-bin/feedback.cgi">
Your name: <input type="text" name="uid">
<input type="submit" value="submit">
</form>

And I tried this to get the data from "uid" using these scripts:

#!/usr/bin/perl
print "content-type: text/html \n\n";
$u -> param('uid');
print "hello";
print $u;


Please help!
I have no idea why it printed nothing!
kwokwai is offline