Jump to content

header redirect function stopped functioning


garry27

Recommended Posts

This is how I'm using it now. The echo out is just to confirm that the header line is being skipped out.

 

if ($row['accType'] == 'P') {
     $_SESSION['valid_pa_mbr'] = $email;
     header ("Location: pa_mbr.php");
     echo("pa member logged in..");
}

 

I'm confused now. I've moved the call to my login function from inside the html to above the html so that there's nothing getting outputted to the screen before the header function is called and I'm still getting the header error.

 

Warning: Cannot modify header information - headers already sent by (output started at .../php_fns_scripts/auth_user_fns.php:102) in

 

line 102 is the last line in that script (i.e. the php closing tag). login() is contained in that script witht he redirect code.

 

My index page looks like this:

 

<?php
  session_start();
  require_once('all_php_fns.php');
  error_reporting(E_ALL); 
  login();
  do_html_header('HomePage','','','',''); 
  show_top_navbar();
  show_main_div();   
  show_left_coln_inx();
  show_right_coln_inx(); //contains login  form
  do_html_footer(); 
?>

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.