php 5 and uninitialized variables

From: steve (a_at_b.com)
Date: 12/27/04


Date: Mon, 27 Dec 2004 12:06:58 -0600

i've setup a include page that's responsible for building the basic layout
of my web pages (header, menus, etc.). each page includes this
"sysheader.php".

the first page i've built with this header is having odd results. its job is
to add users to the system. the variables i expect to be there are: id,
userName, password...stuff like that. after the require_once
"sysheader.php", i've put an "exit;" statement. the header shows perfectly.
if i try and access or set one of the expected variables, only part of the
header shows...crapping out around the time it is building the company
logo - so that i see "<img src="http://www" and nothing else.

i've tried to set my own variable order and initialze the variables myself
like this:

$id = (isset($_POST) ? $_POST['id'] : $_GET['id']);

but that doesn't work either. i've been running similarly constructed pages
successfully under php < 5...what am i missing now that i'm moving to php 5?

tia,

steve



Relevant Pages

  • Re: Ever seen a mail failure like this?
    ... The mail code is straight out ... website to an email address of that same website. ... If you use this MIME message class and set the Return-Path header and ... Find and post PHP jobs ...
    (comp.lang.php)
  • Re: Show image img src=img.php?img=1.jpg help
    ... When i do that the image type is detected correctly as jpeg, ... But earlier you said this really is a bmp, ... I haven't actually tried mixing session_startwith header(); ...
    (comp.lang.php)
  • auto_prepend_file not working with apache 2.2, windows xp and ph
    ... In order for PHP ... different values for several directives, ... The environment variables are not hashed into the $_ENV. ... (e.g. by adding its signature to the Web server header). ...
    (alt.php)
  • Re: !DOCTYPE Problem
    ... I'm getting a header already sent error ... If the <!DOCTYPE is missing, ... If everything else in the php code is correct, ... then it is too late to mess with the header exchange. ...
    (alt.html)
  • nested tables in a form, need an Excel button moved over a column, has some php
    ... I have a page with a form that is included into a php page. ... some php variables which are headers based on the user choices. ... the form output will go to Excel not to the browser. ... There is a included included header under that says home, ...
    (comp.infosystems.www.authoring.html)