redirect issue
Posted: Wed Jul 18, 2007 5:57 am
feyd | Please use
when copied to a differnt server it stops redirecting the page and sits there. please help
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi
i am having a problem with redirect. the page which works fine with my localhost, when copied to a different server doesnt work. the code is belowCode: Select all
<?
session_start();
if(!session_is_registered(myusername)){
header("location:template.php");
}
?>
<html>
<body>
<?php
header( 'Location: showrec.php' ) ;
?>
</body>
</html>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]