Solved: 11 Years, 2 Months ago External Login Page
#1
Solved: 11 Years, 2 Months ago Question 
Dear reader,


I'm trying to make the users of my forum login with their username and password on an external page.

Now, I searched around and found this piece of code:
<?php
define("IN_MYBB", 1);
require("forum/global.php");
?>
 
<form action='forum/member.php' method='post'>
<input type='hidden' name='action' value='do_login' />
<input type='hidden' name='url' value='index.php' />
Username: <input type='text' name='username' maxlength='30' /><br />
Password: <input type='password' name='password' /><br />
<input type='submit' name='submit' value='Log in' />
</form>

Problem is that it redirects to my forum, this shouldn't happen. It should redirect to another page.

How can I make this happen?




Kind Regards,


- Nandricka
Nobody?
Nobody? Huh
#2
Solved: 11 Years, 2 Months ago
Here use this small change to the index

<?php
define("IN_MYBB", 1);
require("forum/global.php");
?>
 
<form action='forum/member.php' method='post'>
<input type='hidden' name='action' value='do_login' />
<input type='hidden' name='url' value='../index.php' />
Username: <input type='text' name='username' maxlength='30' /><br />
Password: <input type='password' name='password' /><br />
<input type='submit' name='submit' value='Log in' />
</form>  ?>


Forum Jump:


Users browsing this thread: 1 Guest(s)