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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Kano Posted March 6, 2007 Author Share Posted March 6, 2007 does anyone know why that worked?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.