Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    Please post the rest of your code. The undefined index error means the post data for that key is not being sent, the indexes being 'month' and 'op'. Something is either setting this back to NULL or they are not being sent at all and there is a problem with the form. Commented Dec 16, 2010 at 21:54
  • 1
    EDIT: Sorry forgot to mention that they do go away when the user submits the data. But when they first come to the page it displays this error. How I can get rid of it so it doesnt display it? Commented Dec 16, 2010 at 21:58
  • 1
    Check if the user is submitting? Commented Dec 16, 2010 at 21:58
  • 3
    Exact duplicate of about a million questions, starting with PHP Undefined Index Commented Dec 16, 2010 at 22:07
  • 1
    Possible duplicate of PHP: "Notice: Undefined variable" and "Notice: Undefined index" Commented Dec 18, 2015 at 10:32