This doesn't make sense to me..
-
I found a login form.. but I want to redirect to a page.. but this doesn’t make sense in the form I found.. Need help
This is what is at the bottom of the form..
else {
echo “<script type=’text/javascript’>window.location='”. get_bloginfo(‘url’) .”‘</script>”;
}
?>You need to change the path in this, echo “window.location=’”. get_bloginfo(‘url’) .”/path-to-any-page’”;
inside if($_POST){ }.
If you want to print the logged in user’s data, then you could use
$user_info = get_userdata($user_ID);
echo “Username: “.$user_info->user_login; You can find more about get_userdata functionbut it doesn’t make sense to me..
- The topic ‘This doesn't make sense to me..’ is closed to new replies.