Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [tandat] Username on Main page: Edit Log

Here is the list of edits for this post
Re: [tandat] Username on Main page
this is what I did on the home.html page

Welcome, <%if Username%><%Username%><%else%>Guest
<font size="2">
<form action="<%db_cgi_url%>/user.cgi" method="POST">
<input type=hidden name=login value=1>
<%if url%>
<input type="hidden" name="url" value="<%url%>">
<p>Sign in to <%site_title%>: </p>
<%if error%>

<p>Username: <input name="Username" value="Username">
<br>Password: <input type=password name=Password>
<input type=submit value="Login"></p>
<p>Dont have a User ID<br>
Then <a href="<%db_cgi_url%>/user.cgi?signup_form=1">register</a> here</p>
<p>Forgotten <a href="<%db_cgi_url%>/user.cgi?email_pass=1">Username/Password</a>.</p>
<form action="<%db_cgi_url%>/user.cgi" method="POST">
<input type="hidden" name="url" value="<%url%>">
<input type=hidden name=login value=1>
<%if url%>

but after you loggin, it still shows Guest and the login is still on the page,

What im trying to do, is let them login from the index page, after they login it will welcome them on the index page and just have a logoff link.

do I have the script right for that?

Welcome, Guest
Sign in to Sitename:

Dont have a User ID Then regist here
Forgotten username/password

Then when they login it would just look like this

Welcome, Tazmear

Logoff <------a link to logoff

Thanks for your help
www.sagnetwork.com - Internet Portal

Last edited by:

tazmear: Jun 2, 2007, 10:23 AM

Edit Log: