Jump to content


Photo

Variable help...!!!!pls


  • Please log in to reply
5 replies to this topic

#1 snake310

snake310
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 22 August 2006 - 06:35 AM

Hello


  I have this at the satat of the page

$get1=$_GET['list'];
$get2=$_GET['list2'];
$get3=$_GET['list3'];
$serial=$_GET['serial'];
$InTime=$_GET['InTime'];
$provider=$_GET['provider'];
$validnumb=$_GET['validnumb'];

I think i don`t have to tell what it dose , what can i do to make list , list2, ... validnumb not an unidentified index??

and the error message :Notice: Undefined index: list in c:\program files\easyphp1-8\www\new prod.php on line 3

BTW i use these variables later in the page so when i reload the errormessages disapear and everything works fine.
Any1 has any idea?? ???

#2 manmadareddy

manmadareddy
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts

Posted 22 August 2006 - 07:13 AM

error_reporting(E_ALL ^ E_NOTICE);


#3 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 22 August 2006 - 07:17 AM

$get1 = $_GET['list'] ? $_GET['list'] : '';


#4 manmadareddy

manmadareddy
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts

Posted 22 August 2006 - 07:24 AM

$get1 = isset($_GET['list']) ? $_GET['list'] : '';

#5 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 22 August 2006 - 07:28 AM

doh...

#6 snake310

snake310
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 22 August 2006 - 07:49 AM

Thx Thx Thx it worked  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users