Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Registration Error

by sutch (Curate)
on Mar 06, 2003 at 19:41 UTC ( #240976=note: print w/ replies, xml ) Need Help??


in reply to Registration Error

What type of error is being experienced?

One thing that stands out to me is:
if ($dbm1{"$accountAD"} && $dbm1{"$accountAD"} =~ /^$accountAD$/) {
The hash key, $accountAD, is being compared against the value of the hash, $dbm1{"$accountAD"}. Shouldn't $accountID be used somewhere in here?


Comment on Re: Registration Error
Download Code
Replies are listed 'Best First'.
Re: Re: Registration Error
by sulfericacid (Deacon) on Mar 06, 2003 at 19:53 UTC
    I don't get any errors at run time. Everything works except for the checking of the params against the database. No matter what link they are emailed it will say Registration Failed when they click on it.

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
      It wouldn't give you any errors because it is valid code. The logic is wrong. $dbm1{$accountAD} contains the user's ID but you are checking to see if contains the email address.
      Have you looked at the comparison? If registration always fails, then do examine the comparision as I suggested in my original response.

      poj also notes naming inconsistencies with $ID and $accountID. That would also affect what is being compared.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-08-04 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (59 votes), past polls