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*

5
  • 1
    This will just suppress the notice, not fix the cause. Commented Jan 30, 2011 at 12:09
  • 8
    @mario I explained cause below code. Author wrote: "When I run the page, I get this error: Notice: Undefined index: query_age in .../index.php on line 19" so I think, that my answer is ok to fix that. Commented Jan 30, 2011 at 12:13
  • 1
    Fixing the notice != fixing the reason. But I'm not disputing that it answers the OPs "make it go away" question part. Yet, the actual problem lies elsewhere. Commented Jan 30, 2011 at 12:19
  • 2
    Good idea if the script that processes the form is the same that produces the form. But in this case it seems to be two different scripts. The error is thrown in index.php while the form's action is user_list.php. Commented Jan 30, 2011 at 12:28
  • $query_age = (isset($_GET['query_age']) ?: null) Commented Apr 20, 2017 at 12:15