elitis Posted April 30, 2010 Share Posted April 30, 2010 problem 1: It has to redirect after my users log into their accounts. Also could you guys please help with something else. (I know almost nothing about php) problem 1 code: go to www.pastebin.com/myxneVXe problem 2: Theres a page on my site where when members log into their accounts it's suppose to say,"Welcome ... you are logged in". Its also suppose to remove the login form and show links to "members only" pages. But it doesn't do that. It will just keep the log in form and do nothing its suppose to do. problem 2 code: go to www.pastebin.com/pk5v4kkz Link to comment https://forums.phpfreaks.com/topic/200287-how-to-make-a-php-redirect-code/ Share on other sites More sharing options...
947740 Posted April 30, 2010 Share Posted April 30, 2010 Problem 1: You can do a header("Location: URL"); where URL is the url...but if you have already outputted data that will not work. Most likely you will want to use <meta> html tags with the refresh property. Look it up on w3schools...it's quite useful. Link to comment https://forums.phpfreaks.com/topic/200287-how-to-make-a-php-redirect-code/#findComment-1051127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.