Gossamer Forum
Home : Products : DBMan : Customization :

Add LOGIN link to DEFAULT Main menu?

Quote Reply
Add LOGIN link to DEFAULT Main menu?
I want to set up my database for the user to enter the main menu without logging in, but want a link at the bottom of the Main Menu to login if the user wants permission to modify records.

So, they enter the database through a call to the script: http://matineeclub.tripod.com/cgi-bin/db.cgi?uid=default at the bottom I have a LOGIN link to:<A HREF="$db_script_link_url?login_form=1">Log In</A>, but this always ends up sending them to the Logon Error form with invalid/expired user session as the reason.

How can I write this to work?
Quote Reply
Re: [zi94sm65] Add LOGIN link to DEFAULT Main menu? In reply to
You can use the following in your footer:

print qq!| <A HREF="$db_script_url?db=$db_setup">Logon</A> ! if ($db_userid eq 'default');

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [LoisC] Add LOGIN link to DEFAULT Main menu? In reply to
Thanks that did the trick!