Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-23-2006, 01:32 PM   #1 (permalink)
 
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  
Old 09-23-2006, 09:44 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

http://www.mediacollege.com/internet...form-data.html
office politics is offline  
 
Closed Thread

« Css | Dreamweaver 8 »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On