Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: To register or not to register, that is the question!

by metadatum (Scribe)
on Dec 31, 2002 at 14:20 UTC ( [id://223317]=note: print w/replies, xml ) Need Help??


in reply to To register or not to register, that is the question!

well, to start...

this error:

Found = in conditional, should be == at reg.cgi line 34.
refers to this line -

elsif (&check_user_email($user_name,$email) = "good"){

change the = to ==

and these errors

Global symbol "$title" requires explicit package name at reg.cgi line +32.
Global symbol "$body" requires explicit package name at reg.cgi line 3
+2.

tell me that you need to declare $title and $body like so:

my ($title, $body)
before using them...
  • Comment on Re: To register or not to register, that is the question!

Replies are listed 'Best First'.
Re: Re: To register or not to register, that is the question!
by JamesNC (Chaplain) on Dec 31, 2002 at 14:40 UTC
    I think in addition, you have a typo $datofbirth when you meant $dateofbirth on line 24, be careful to check that you get the results you are expecting too from $title and $body since you declare them local in your subs but are also using them in your global Also, when I use the CGI module, I find it much easier to:
    use CGI qw(:all);
    then you can just
    print header;
    (saves some typing :0)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found