Gossamer Forum
Home : Products : DBMan : Customization :

Cookie mod syntax problem

Quote Reply
Cookie mod syntax problem
I have searched for some stuff on this....
Using the C O O K I E M O D I get the following:-
Code:
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Unterminated <> operator at ./users_html.pl line 1436.
The section of the html.pl that it refers to is thus:-
Code:
sub html_login_form {
# --------------------------------------------------------
# The login screen.
<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|

$page_title = "Login";
&html_page_top;
Which is copied directly from the mod page. I've tried various changes to no avail (jeez I wish that Perl book would arrive now!)...Any clues????
Cheers,
Rob
Quote Reply
Re: Cookie mod syntax problem In reply to
Im absolutely no Guru, but shouldn't it be:
Code:
sub html_login_form {
# --------------------------------------------------------
# The login screen.
$page_title = "Login";
&html_page_top;
print qq|
<body bgcolor="#DDDDDD" text="#000000"|;
if ($print_get_cookies)
{
print qq| OnLoad="GetCookies()">|;
&cookie;
}
print ">";

Im not sure about the last line, but for me the html_page_top should be outside of any print statement, and surely before the body statement (is that not already in your html_top ? You also need a print statement for the <body> tag and you can combine it with the > symbol.

If it works I'll be happy because Im only a newbie!

------------------
Ben

-------------------------
http:/www.t-e.co.uk


[This message has been edited by benseb (edited April 26, 2000).]
Quote Reply
Re: Cookie mod syntax problem In reply to
Change

Code:
print qq|
$page_title = "Login";
&html_page_top;

to

Code:
$page_title = "Login";
&html_page_top;
print qq|


------------------
JPD






Quote Reply
Re: Cookie mod syntax problem In reply to
Worked fine now Ben, well done and thanks!! Smile