Gossamer Forum
Home : Products : DBMan : Customization :

Cookie mod problem

Quote Reply
Cookie mod problem
I 'm trying to Add cookie mod but ideasnot work for me .(so Are Other Mods)
i get Error "
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./html.pl line 999, near "print"
here is my login script
sub html_login_form {
# --------------------------------------------------------
# The login screen.

&html_print_headers;
print qq|
<html>
<head>
<title>$html_title: Login.</title>
</head>
<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie
print qq| ----------this is 999
<center>
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 align=center valign=top>
<tr><td bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>$html_title: Login</b>
</td></tr>
<tr><td>
<p><center><$font_title>
<b>Log On</b></font></center><br>
<$font>Welcome! You need to have an active account to access $html_title. For
the demo, you can use userid/passwords: 'admin/admin', 'author/author', 'guest/guest'.<BR>|;
if ($auth_signup) {
print qq|
If you do not yet have an account, you may <a href="$db_script_url?db=$db_setup&signup_form=1">sign up for one here.</a><BR>|;
}
print qq| If you have forgotten your password, you may <a href="$db_script_url?db=$db_setup&lookup_form=1">receive another password here.</a>
<p>
<form action="$db_script_url" method="POST" name="form1" OnSubmit="return IsValid()">

<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">
<table border=0>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>User ID:</b></FONT></td>
<td><input type="TEXT" name="userid"></td></tr>
<tr><td><Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399><b>Password:</b></FONT></td>
<td><input type="PASSWORD" name="pw"></td></tr>
<tr><td colspan=2><b>Remember username and password for future logins?</b>
<INPUT type="checkbox" name="auth_remember_login">
</td></tr>
</table>
<center>
<input type="SUBMIT" name="login" value="Logon">
<INPUT TYPE="SUBMIT" NAME="logoff" VALUE="Cancel">
</center>
</form></p></font>
</td></tr>
</table>
</center>
</body>
</html>
|;
}


Thanks
Quote Reply
Re: Cookie mod problem In reply to
Change
Quote:
&cookie
to
Quote:
&cookie;
Quote Reply
Re: Cookie mod problem In reply to
Ok it worked thanks But ?
It Does not Saves a Cookie.
i'm trying to login and it prompts me for a password.
How Is that?
Quote Reply
Re: Cookie mod problem In reply to
Hi,

I would have to see your html.pl to see what the problem is. Before you do that, make sure you added $print_get_cookies = "1" somewhere in default.cfg.

Thanks
Eli
Quote Reply
Re: Cookie mod problem In reply to
get the latest mod from

http://www.koshervitamins.com/cookie.txt

[This message has been edited by stanley (edited November 01, 1999).]
Quote Reply
Re: Cookie mod problem In reply to
small problem:
Quote:
3. Go to your sub html_login_form routine. We're going to have to do a
little editing. At the top of the routine Change
##############################################################################

<body bgcolor="#DDDDDD" text="#000000">

I don't have a <body bgcolor="#DDDDDD" text="#000000">tag in my html_login_form routine

the only place i have a <body> statement is in sub html_page_top

I've tried it here and it doesn't seem to work.

-frank

[This message has been edited by FLThiak (edited November 02, 1999).]
Quote Reply
Re: Cookie mod problem In reply to
FLThiak,

I would recommend pulling out the codes from the sub html_page_top routine and put them in the top of the sub html_login_form routine. Then this cookie mod will work.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------