Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is $formdata present?

by jpeg (Chaplain)
on Jun 07, 2005 at 09:11 UTC ( #464199=note: print w/replies, xml ) Need Help??


in reply to Is $formdata present?

would either of these work?

if (length($formdata{'num'}) == 0) { #... }

if ($formdata{'num'} eq '' ) { #... }

obligatory 'use CGI' suggestion goes here

--
jpg

Replies are listed 'Best First'.
Re^2: Is $formdata present?
by ecuguru (Monk) on Jun 07, 2005 at 17:40 UTC
    Yes and no..
    Yes it works and it will execute correctly.
    No because you get runtime warnings about trying to do operations with a nonexistant variable
    If you have your code online and hit enough times, it just jams up the error log something fierce.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-08-10 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (58 votes). Check out past polls.

    Notices?