Jump to content


Photo

Undefined variable: _post errir


  • Please log in to reply
1 reply to this topic

#1 shah

shah

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 16 May 2009 - 02:00 PM

Hi all,
i am using some php code in my website. i am getting the following error. kindly tell me what could be the problem

Notice: Undefined index: submit in index.php on line 9
Notice: Undefined variable: _post in index.php on line 88

does it mean i have to set the global variables in the config file or something like that??

i would appreciate your help

Thanks
Syed

#2 Ken2k7

Ken2k7

    Advanced Member

  • Members
  • PipPipPip
  • 5,197 posts

Posted 16 May 2009 - 02:02 PM

First error - You're probably using $_POST['submit'], $_GET['submit'] or $_REQUEST['submit'] in some function without checking if it exists or not. You should always check.

Second error - I assume you used $_post instead of $_POST. Case-sensitive.

A programmer who shys away from elegant tricks will never be more than competent at best. Ego and a desire to attempt the impossible are traits of most great coders.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com