On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote:
> Hi everybody,
> can someone have a look at this bit of code please and help me out?
> I am getting an error message when calling a php page containing the
> code below, and the message reads:
> "Warning: Undefined index: view in
> c:/bibelcenter.de/www/links/links.php3 on line 76"
> Now the line 76 in question is the last one of the code section below
> ... can someone tell me what's missing there? how could this "index
> view" be defined?
> # Get the content before showing the webpage
> if ($HTTP_GET_VARS['category'] == 'top_links')
> $your_current_location = "Most Popular Links";
> else if ($HTTP_GET_VARS['category'] == 'new_links')
> $your_current_location = "Newly Added Links";
> $categories = viewPage($HTTP_GET_VARS['category']);
> $your_current_location =
> $category_links =
> Any helpful ideas? I only get this warning message in my Win2k
> machine which I have set up for testing webpages purposes, it does
> not show up on my ISP's server ... so I suspect that somehow the
> server's php tolerates something in the code which my php version
> here somehow puts up the warning ...
> Any helpful hints and ideas are much appreciated. Thank you!
There will probably be different levels of error reporting in the two
view is an index of the array $HTTP_GET_VARS, and is apparently not
defined at that part of the script.
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
A cat sleeps fat, yet walks thin.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]