mysql - php header location not redirected from 404 -
hi friends have 1 problem redirect page php section.
this php redirect section:
<?php session_start(); if (!(isset($_session['uid']) && $_session['uid'] != '')) { header('location: '.$base_url.'index.php'); exit; } include_once 'includes.php' ; if($_get['user_name']){ $user_name=$_get['user_name']; include_once 'public.php'; } if(empty($_get['user_name'])) { header(location:$url404); }?>
$url404"
in includes.php
$url404=$base_url.'404.php';
the problem page not redirect if username empty
you forgot include "
, it's not seeing header string.
change header(location:$url404);
header("location:" . $url404);
php mysql
No comments:
Post a Comment