[Solved] undefined index: postevent….solved it but that created other problems [closed]

Situation before: $citylink_view = “view=$targetview&postevent=$_GET[postevent]”; which is the same as: $citylink_view = “view=$targetview&postevent=” . $_GET[‘postevent’]; Which can be written as: $foo = $_GET[‘postevent’]; $citylink_view = “view=$targetview&postevent=” $foo; You wrote: $posteventview = $_GET[‘postevent’]; $citylink_view = “view=$targetview&”.$posteventview; Can you spot the difference? Aside, you are possible vulnerable to XSS. Sanitize the input and urlencode. Use filter_* functions, … Read more

(Solved) “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key”, and “Notice: Undefined offset” using PHP

Notice / Warning: Undefined variable From the vast wisdom of the PHP Manual: Relying on the default value of an uninitialized variable is problematic in the case of including one file into another which uses the same variable name. It is also a major security risk with register_globals turned on. E_NOTICE level error is issued … Read more