Header not working PHP -


hey guys need id dont understand problem . redirect , not work. , script good:

<?php require_once 'php/db_connect.php';//db connect require_once 'php/functions.php';// function  if(!isset($_get['pid'])){//getting page id return page     $page_id = 1; }  else{     $page_id = preg_replace('#[^0-9]#i', '', $_get['pid']); }  $user = $_post['user_reg']; $password = $_post['pass_reg'];  $result = add_user($user , $password);  if(!$result){     return false; }  else{     header('location:index.php?pid='.$page_id.'');     die(); } ?> 

try capitalizing location.

http://www.php.net/manual/en/function.header.php#79028

the first element of header (i.e. "location") case sensitive depending on browser.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -