Perl

Status
Not open for further replies.

kwokwai

In Runtime
Messages
168
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!
 
Status
Not open for further replies.
Back
Top Bottom