Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: CGI.pm and blank form fields

by tstock (Curate)
on Nov 28, 2001 at 12:07 UTC ( [id://128015]=note: print w/replies, xml ) Need Help??


in reply to CGI.pm and blank form fields

Are you sure the browser is sending name= in the query line ? I tried a bit of code and couldn't duplicate your example:

use CGI; my $q= new CGI; print "content-type: text/plain\n\n"; if ($q->param()) { print "got param $_\n" for ($q->param()); } print "the end\n";


This on CGI version '2.56', calling it as http://script?name= did print out "got param name".

Tiago

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found