Login from index
-
I’m trying to setup a login form that is not on the wp-login page. The thing that I’m actually trying to do is setup a login page for multiple blogs. I can figure out the part redirecting it using the login name but I’m having trouble with the thing actually go into the admin page. I’ve tried make a page to autologin into the wp-login page using sessions but after it logs in it just goes to a blank page. So I got the login part but not the redirecting part down. I was hoping I could use some wordpress code instead of this form filler. Maybe if someone could help me figure out how to make a modified wp-login page to automatically login using variables from a session.
Here’s the code I used for testing the form…
<!–
function autologin()
{
document.testlogin.submit();
}
//–
</script>
<form method=”post” name = “testlogin” action=”test/wordpress/wp-login.php” >
<input type=text name=’log’ value=”>Name<br>
<input type=password name=’pwd’ value=”>Password<br>
<input type=submit value=’javascript:autologin()’>
</form>and I added this to wp-login.php…
<?php
session_start();
?>
The topic ‘Login from index’ is closed to new replies.