little wamp coding issues
Posted by: ianhaney29 (---.bb.sky.com)
Date: May 25, 2013 02:05PM

Hi

I am doing a new test site and got a couple of little issues

I am getting the following errors

SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: qs in C:\wamp\www\admin website\admin\index.php on line 22

AND

SCREAM: Error suppression ignored for
( ! ) Notice: Undefined index: inv_usr in C:\wamp\www\admin website\admin\index.php on line 52

ON LINE 22 IS THE FOLLOWING

if($_REQUEST["qs"]=="logout"winking smiley

AND ON LINE 52 IS THE FOLLOWING

<?php if($_GET['inv_usr'] == 'yes')

Any ideas

Kind regards

Ian

Options: ReplyQuote
Re: little wamp coding issues
Posted by: RiggsFolly (---.as13285.net)
Date: May 28, 2013 10:40AM

There must be more than one way into your code. In some cases these variables are not passed to your script.

In these cases its best to do something like this

if ( array_key_exists( 'qs', $_REQUEST ) && $_REQUEST["qs"]=="logout" ) {

if ( array_key_exists( 'qs', $_GET ) &&  $_GET['inv_usr'] == 'yes') {

Options: ReplyQuote


Sorry, only registered users may post in this forum.