Undefined index: version in PDP in this line: [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $ver = stripinput($_POST['version']);[/syntaxhighlighter] then the same thing for $_POST['desc'] [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$desc = stripinput($_POST['desc']);[/syntaxhighlighter]
As you can see most of my errors are with $_POST and $_GET. Unfortunately i dont know how to fix them. Can you give me any fixes?
Also change these 2 strings to: [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$ver = (isset($_POST['version'])?stripinput($_POST['version']):''); $desc = (isset($_POST['desc'])?stripinput($_POST['desc']):'');[/syntaxhighlighter]
PS '' can be your def. value - '1.0' or something.
Thank you! Now it's OK. Can you (or anyone else) help me with these errors?
Undefined index: article_cat_id from Extended Articles infusion:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $cat_info = cat_info($cat_id); echo " » <a href='".$cat_info['article_cat_id']."' alt='".$cat_info['article_cat_name']."'>".$cat_info['article_cat_name']."</a>";[/syntaxhighlighter] the error is in the second line.
Here is another error (Undefined index: news_en) with $_GET:
also here... It shows me Undefined offset: 4 on the 3rd line.: [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] $exploded_tags = explode(", ", $news_tags); for ($i = 0; $i <= 15; $i++) { if ($exploded_tags[$i] == "") { break; } echo "<a href='".BASEDIR."search.php?method=OR&fields=0&stext=".$exploded_tags[$i]."&stype=news&submit.x=24&submit.y=20' alt='' title='$exploded_tags[$i]'><span>$exploded_tags[$i]</span></a>, "; } } [/syntaxhighlighter]
and finally this line [syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]foreach(glob("$dir/*") as $item){$sort[]= end(explode('/',$item));}[/syntaxhighlighter] it's showing me this Only variables should be passed by reference