login

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
sharky86
Registered User
Posts: 93
Joined: Sun Aug 19, 2007 10:25 am

login

Post by sharky86 » Tue Apr 01, 2008 6:00 pm

hi all! i have this code on a external page and for any reason it is not working. what happens is that i am redirected to the login page of the forums and there i am asked for user an pass.. without any error message.

any idea of what's wrong?

thank you

igor

Code: Select all

<form action="<?php echo($phpbb_root_path); ?>login.php" method="post" enctype="multipart/form-data"><br />
						<table border="0">
						<tr><td>Username:</td><td><input type="text" size="12" name="username"></td></tr><tr>
						<td>Password:</td><td><input type="password" size="12" name="password"></td></tr></table>
						Remember me:<input type="checkbox" name="autologin"><input type="hidden" name="redirect" value="/../index/main.php">
						<br /><br /><input type="submit" value="login" name="Login"><br />

						</form>

User avatar
Lumpy Burgertushie
Registered User
Posts: 66930
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: login

Post by Lumpy Burgertushie » Wed Apr 02, 2008 3:45 am

sharky86 wrote:hi all! i have this code on a external page and for any reason it is not working. what happens is that i am redirected to the login page of the forums and there i am asked for user an pass.. without any error message.

any idea of what's wrong?

thank you

igor

Code: Select all

<form action="<?php echo($phpbb_root_path); ?>login.php" method="post" enctype="multipart/form-data"><br />
						<table border="0">
						<tr><td>Username:</td><td><input type="text" size="12" name="username"></td></tr><tr>
						<td>Password:</td><td><input type="password" size="12" name="password"></td></tr></table>
						Remember me:<input type="checkbox" name="autologin"><input type="hidden" name="redirect" value="/../index/main.php">
						<br /><br /><input type="submit" value="login" name="Login"><br />

						</form>

do you have this at the top of that page?

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../yourphpbb/';//edit for your path to your phpbb folder
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);


// Start session management

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
T0ny
Registered User
Posts: 1383
Joined: Sun Jan 29, 2006 8:42 pm
Location: Lancashire
Name: Tony

Re: login

Post by T0ny » Wed Apr 02, 2008 11:39 am

Code: Select all

<input type="submit" value="login" name="Login">
You have the name & value the wrong way round. It should be

Code: Select all

<input type="submit" name="login" value="Login">

Post Reply

Return to “[2.0.x] MOD Writers Discussion”