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

Re: [tandat] Username on Main page

Quote Reply
Re: [tandat] Username on Main page In reply to
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>
<%body_font%>
<%if url%>
<input type="hidden" name="url" value="<%url%>">
<%endif%>
<p>Sign in to <%site_title%>: </p>
<%if error%>
<p><%error_font%><b><%error%></b></font></p>
<%endif%>

<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><BR>
<form action="<%db_cgi_url%>/user.cgi" method="POST">
<input type="hidden" name="url" value="<%url%>">
<input type=hidden name=login value=1>
<%body_font%>
<%if url%>
</font>
</form><%endif%>

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:
Username:
Password:

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
Subject Author Views Date
Thread Username on Main page sagnetwork.com 4562 Jun 2, 2007, 5:07 AM
Thread Re: [tazmear] Username on Main page
tandat 4413 Jun 2, 2007, 9:11 AM
Thread Re: [tandat] Username on Main page
sagnetwork.com 4378 Jun 2, 2007, 10:16 AM
Post Re: [tazmear] Username on Main page
tandat 4347 Jun 2, 2007, 7:24 PM