I'm trying to create a login strip utilising the PHPBB3 forum logins at the top of a page using the following code:
if ( !$user->data['is_registered'] ) {
$c .= '<form action="./forum/ucp.php?mode=login" method="post">
Username:<input style="height:16px;font-size:10px;" type="text" name="username" size="20" title="Username" />
Password:<input style="height:16px;font-size:10px;" type="password" name="password" size="20" title="Password" />
<input type="submit" name="login" value="Login" />
Remember Me? <input type="checkbox" name="autologin" id="autologin" />
<input type="hidden" name="redirect" value="./../index.php" />
</form>'
}
yet whenever I use it, it insists on redirecting me to the index page for the forums rather than the index page that the user has just left. This also has the knock-on effect (I think it's caused by this at least) of effectively disabling the session checking on the front page of the website.
If anyone has an idea as to why this is going wrong, that would be much appreciated.