...

View Full Version : Warnings under IIS??



gorilla1
02-23-2003, 08:26 PM
I have a script that runs fine on apache. But when I run it on IIS, I encounter the following warnings:


Warning: Undefined variable: action
on this line:
if($action == "edit") {

action is defined elsewhere like so:
echo "&nbsp;<a href=\"$PHP_SELF?action=edit&id=$key\">Edit</a>\n";

and a warning,
Warning: Undefined index: submit
on this line:

if($HTTP_POST_VARS['submit']) {

the submit is a form name.
What is needed to make this work on IIS?

G

gorilla1
02-23-2003, 09:34 PM
OK, it is a difference in php.ini settings. I put this line in my script and suppressed the warnings:
error_reporting(E_ALL & ~E_NOTICE);

G



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum