Jump to content


Undefined variable: _post errir

  • Please log in to reply
1 reply to this topic

#1 shah

  • Members
  • PipPipPip
  • Advanced Member
  • 52 posts

Posted 16 May 2009 - 07: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


#2 Ken2k7

  • Members
  • PipPipPip
  • Advanced Member
  • 5,197 posts

Posted 16 May 2009 - 07: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