Monday, May 12, 2008

function redirecting the page

//function redirecting the page
function funRedirect($url = '', $type = 'location')
{
switch($type)
{
case 'refresh' : header("Refresh:0;url="($url);
break;
default : header("Location: ".($url);
break;
}
exit;
}

No comments:

Post a Comment

Please put your comments here. your questions, your suggestions, also what went wrong with me.