webstudioro has asked for the wisdom of the Perl Monks concerning the following question:
Please help me.#!/usr/bin/perl require "admin_sub.pl"; require "uzual_sub.pl"; require "variabile.pl"; &readForm; if ($FORM{'verify'} eq "account") { if (($FORM{'user'} eq "$adminUser") && ($FORM{'pws'} eq "$adminPas +sword")) { print "Content-type: text/html\n\n"; print "Set-Cookie: .$user.=.$pws.; expires=..; path=./.; domain=.l +ocalhost.;"; print "The cookie is: $ENV{'HTTP-COOKIE'}"; exit; } else { print "Content-type: text/html\n\n"; print "Username-ul sau parola nu sunt bune."; exit; } exit; } print "Content-type: text/html\n\n"; print <<ENDHTML; <html> <head> <title>$websiteTitle :: Shop Admin.</title> </head> <body> <table align=center border=0> <form action="http://localhost/cgi-bin/larrycenter/admin.pl" method="p +ost"> <input type=hidden name="verify" value="account"> <tr><td> User: <input type=text name="user"><br> Password: <input type=password name="pws"><br> <input type=submit value="Log in!"><br> </td></tr> </form> </table> </body> </html> ENDHTML exit;
edited: Fri Jul 11 01:12:19 2003 by jeffa - code tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help to eat cookie
by hardburn (Abbot) on Jul 10, 2003 at 17:29 UTC | |
|
Re: Help to eat cookie
by cfreak (Chaplain) on Jul 10, 2003 at 17:59 UTC | |
by webstudioro (Acolyte) on Jul 11, 2003 at 06:19 UTC | |
by cfreak (Chaplain) on Jul 11, 2003 at 14:28 UTC | |
|
Re: Help to eat cookie
by cleverett (Friar) on Jul 11, 2003 at 00:22 UTC |