FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » login on my main news page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
login on my main news page [message #8556] Fri, 07 February 2003 19:41 Go to previous message
borbjo is currently offline  borbjo   Norway
Messages: 6
Registered: January 2003
Location: Stavanger, Norway
Karma:
Junior Member

Hi, I'm trying to make a login box on my main page (not where the forum is) .. and I want to use the "returnto" tag to send the user back to the main page (/index.php) when the user has logged in.

I assumed that was what the "returnto" tag was for. However, it does not work Sad ..

The user is sent to /fud/index.php not /index.php, even though I specify the full URL ..

here's my code:
<?

	$sess_string = $HTTP_GET_VARS["S"];
?>	
	<form name="quick_login_form" method="post" action="/fud/index.php?t=login">
	<input type="hidden" name="S" value="<?=$sess_string?>">
<table>
<tr class="SmallText">
	<td>brukernavn</td>
	<td>Passord</td>
	<td colspan=2>&nbsp;</td>
</tr>
<tr>
	<td><input class="SmallText" type="text" name="quick_login" size=18></td>
	<td><input class="SmallText" type="password" name="quick_password" size=18></td>
	<td><input type="checkbox" name="quick_use_cookies" value="1"><font class="SmallText"> Bruk cookies?</font> </td>
	<td><input type="submit" class="button" name="quick_login_submit" value="Logg inn"></td>
</tr>
</table>
<input type="hidden" name="returnto" value="http://127.0.0.1">
</form>


Also, if someone had a short snippet for finding out wheter or not a user is logged in, that would be appreciated.

- bjorn


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Read Message
Read Message
Read Message
Previous Topic: Question about templates
Next Topic: showing only one category at a time
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:44:09 GMT 2024

Total time taken to generate the page: 0.03715 seconds