Gossamer Forum
Home : Products : DBMan : Customization :

remember login prob

Quote Reply
remember login prob
Just changed the face of my http://www.izmirhigh.com/cgi-local/Database/db.cgi. Everything's functional 'cept the remember login. All I modified was the html.pl, but can't for the life of me find where I lost something in the mix.
Any suggestions?
Webmaster
http://www.izmirhigh.com/
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
anybody?
Webmaster
http://www.izmirhigh.com/
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
you have 2 forms on the same page named form1
JS not like .......

you have 2 body tags and the cookie call is in the second one, remove second tag and move OnLoad="GetCookies()" to the first one

dave,

Last edited by:

Dave T: Oct 6, 2001, 7:15 PM
Quote Reply
Re: [Dave T] remember login prob In reply to
Dave,

Thx 4 the reply.

Think I see exactly what yr talking about, but can't seem to get the syntax right.

sub html_page_top has

Code:
sub html_page_top {
# -----------------
# This is where you define what all of your web pages will look like.

&html_print_headers;
print qq|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>$html_title: $page_title </title>
</head>
<body alink="#990000" bgcolor="#0099CC" leftmargin="0" link="#000099" rightmargin="0" text="#000000" topmargin="0" vlink="#999999" marginwidth="0" marginheight="0"><br>

sub html_login_form has

Code:
sub html_login_form {
# -------------------
# The login screen.

&html_print_headers;
$page_title = "Login";
&html_page_top;
print qq|
<BODY bgcolor="#5DDFF5" text="#000000"|;
if ($print_get_cookies) { print qq~ OnLoad="GetCookies()"~; }
print qq|>|;
&cookie;
print qq|

Possible for me to further ask you to get the syntax right?

TIA

JR

Webmaster
http://www.izmirhigh.com/
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
using the cookie mod?

ummm .... looks like you got html errors.

you're double printing the body tag.

in the top sub you're declarign what the html for the overall site should look like and then in the second sub you're declaring a body color and the main text color which are slightly different from the top sub.

but for a the first simple solution possibly erase &html_page_top; from the bottom sub and then copy over the other link colors and margin settings to the bottom body tag.

I don't know which colors you want so please try adjusting the the html.

have fun and good luck.



openoffice + gimp + sketch ... Smile
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
sub html_page_top {
# -----------------
# This is where you define what all of your web pages will look like.

&html_print_headers;
print qq|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>$html_title: $page_title </title>
</head>
<body alink="#990000" bgcolor="#0099CC" leftmargin="0" link="#000099" rightmargin="0" text="#000000" topmargin="0" vlink="#999999" marginwidth="0" marginheight="0"|;
if ($print_get_cookies && $lif) { print qq~ OnLoad="GetCookies()"~; }
print qq|><br> then all that follows up to the next pipe |;


sub html_login_form {
# -------------------
# The login screen.
$lif="1";
&html_print_headers;
$page_title = "Login";
&html_page_top;
&cookie;
print qq| all that follows up to next |;



the log in form sub has a call to &html_page_top;

that prints the body tag


try and see


Last edited by:

Dave T: Oct 6, 2001, 10:05 PM
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
it's late but I think this might work
I added $lif="1"; to log in
so the if in the top of page sub will not print get cookies if you are not using them in all pages, just to log in.

I think thats what I'm doing
anyone else ??
Quote Reply
Re: [Dave T] remember login prob In reply to
Havin a helluva time w/thisMad

Tried Dave T.'s. No go. Further got errors on the other pages as well. Convinced the only prob is the sub html_login_form.

Above said, tried QooQ's, it works ... as a stand alone page, but as soon as I put back the table formatting, it gets all wacky again.

... to the point of saying the heck w/it and taking out the cookie mod altogether, but would like to give it another goWink ... tomorrow ... if yall have any other suggestions.

Help or hurt, check out my http://www.izmirhigh.com/html_pl.txt

Thx.

JR
Webmaster
http://www.izmirhigh.com/
Post deleted by joebagodonuts In reply to
Quote Reply
Re: [joebagodonuts] remember login prob In reply to
you must change the form names in the login sub

<form action="/cgi-local/Database/db.cgi" method="POST" name="form1">

<form action="$db_script_url" method="POST" name="form1" OnSubmit="return IsValid()">


change the first one to name="form2" or something else
no matter what, to use the cookies you need to have only one form named "form1" in the same page.

hope we can get this to work for you
Quote Reply
Re: [Dave T] remember login prob In reply to
IT WORKS!!!

Chg'd the form1 ref's in sub cookie to "form2" and <form action="$db_script_url" method="POST" name="form1" OnSubmit="return IsValid()"> to "form2" and VOILA, it works!!!

Thx so much for yalls helpSmile

JR

Webmaster
http://www.izmirhigh.com/