Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Updating a record based on cookie retrieval

by DaWolf (Curate)
on Dec 07, 2004 at 19:00 UTC ( #412974=note: print w/replies, xml ) Need Help??


in reply to Updating a record based on cookie retrieval

Not directly related to the code:

Your table should have a UNIQUE constraint on the host field. This will avoid some precious time cleaning the table if something goes wrong, wich was the case here.

Directly related to the code:

if ( $ENV{HTTP_COOKIE} ) { # # Some code here # } elsif ( !$ENV{HTTP_COOKIE} ) { # # Some code here # }


Your elsif is rubbish, since your testing only one condition. It should be replaced by a simple else.

Regards,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2021-04-15 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?