Gossamer Forum
Home : Products : DBMan : Customization :

Cookie Mod help needed

Quote Reply
Cookie Mod help needed
I have followed the Cookie Mod to install on my site, but have a slight problem. Because the way my site is setup, I dont use html_login_form to login. I have a static html page that I have a login coded into. So on my index.html page, I just have this:

<form action="http://www.wdu.net/cgi-local/dbman/db.cgi" method="post" name="form1" OnSubmit="return IsValid()">
<input type=hidden name="db" value="default">
<input type=hidden name="uid" value="">
&nbsp;&nbsp;<font size=-2>Username</font><br>
&nbsp;&nbsp;<input type="TEXT" name="userid" size="10"><br>
&nbsp;&nbsp;<font size=-2>Password</font><br>
&nbsp;&nbsp;<input type="PASSWORD" name="pw" size="10"><br>
&nbsp;&nbsp;Remember password? <INPUT type="checkbox" name="auth_remember_login">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="SUBMIT" name="login" value="Logon">
Of course the Cookie mod doesnt work there though because it seems to be coded for use within the script itself and not on static pages. Does anyone know how to fix this for it to be able to work on a static page logging into the db instead of logging in FROM the db?
Quote Reply
Re: [wdu2002] Cookie Mod help needed In reply to
If I'm not mistaken you should simply have to add the javascript from the &cookie sub to your static page.

Good luck!
Quote Reply
Re: [Watts] Cookie Mod help needed In reply to
Copy and paste the getcookie javascript routines from the cookie mod into your static HTML page. If I recall, the (old) cookie mod just used javascript for its cookie routines, rather than using CGI.pm's built-in cookie support or even Matt Wright's Perl cookie library.

EDIT: Watts beat me to the punch. Cool

Last edited by:

oldmoney: May 23, 2002, 11:57 AM