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)