Kano Posted March 6, 2007 Share Posted March 6, 2007 Hi there, I am asking if someone could help explain how, after validation of log in details does the php open a new script (html page) rather than using the include function? thanks. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/ Share on other sites More sharing options...
Greaser9780 Posted March 6, 2007 Share Posted March 6, 2007 You can use include(),require(), or header() to send someone to another page. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200630 Share on other sites More sharing options...
Kano Posted March 6, 2007 Author Share Posted March 6, 2007 Nice one mate, I will check these out in php manual, many thanks. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200631 Share on other sites More sharing options...
iceman400 Posted March 6, 2007 Share Posted March 6, 2007 you could also use javascript function navigate(), so you dont have to keep posting to the server. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200652 Share on other sites More sharing options...
Kano Posted March 6, 2007 Author Share Posted March 6, 2007 Having a mare with the header function: my script reads on the first line before any output: <?php if($_SESSION['auth'] = "yes" { header ("Location: http://blar blar.php"); } ?> There is no space before the <?php and IE is giving me a warning that = cannot add header information - headers already sent by... Can anyone please help me understand this, many thanks. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200663 Share on other sites More sharing options...
Kano Posted March 6, 2007 Author Share Posted March 6, 2007 Problem solved: I change the file encoding from utf-8 to ansi and that worked, thanks for the help. Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200670 Share on other sites More sharing options...
Kano Posted March 6, 2007 Author Share Posted March 6, 2007 does anyone know why that worked?? Link to comment https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.