Notice: Undefined variable: who in /home/ pr0blem can't solve

Started on the old forum in April 2010 · view the original in the archive · old links redirect here

21 replies · 979 views · started 16 years ago · 1 min read

TL;DR · summary of 21 replies
  • Undefined variable $who was fixed by declaring and initializing it with a null or empty value.
  • Another undefined index issue with $_POST array was also addressed.
  • The error was not considered important, so hiding the errors using error_reporting() was suggested.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

6 participants
wapmetal Lead · 609 posts #5

error is important and i believe that the problem is the hosting , riders and i using these script and it works but i can't find and error to him unlike in my hosting site,

the error describes to get function $who variable in lavalair "viewusers" so whenever it appears to that, get function won't worked even the get page! when i click next it do not enter next pages

this erros i found in all pages but don't means that this is not important because codes do not work

else if($action=="viewuser")
{

$nix = getnick_uid([b]$who[/b]);
  addonline(getuid_sid($sid),"Usha Profile $nix ","index.php?action=viewuser&who=$who");
    echo "<head>";
    echo "<title>View Profile</title>";
    $themes = mysql_fetch_array(mysql_query("SELECT theme, style, mid FROM ibwf_users WHERE id='".$who."'"));
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$themes[0]\">";
    echo "</head>";
    echo "<body>";
include("header.php");
if($themes[1]=="")
{

    echo "";

}
else
{

   echo "<style>body{background-image: url(../pics/$themes[1]);}</style>";

}

    echo "<div align=\"center\">";
 $lastloc=cleanQuery($_GET["[b]lstloc[/b]"]);
if($lastloc=="cht"){
	$rid= cleanQuery($_GET["[b]rid[/b]"]);
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
}
  if($who==""||$who==0)
  {
 [b]   $mnick = $_POST["mnick"];
    $who = getuid_nick($mnick);[/b]
  }
  $whonick = getnick_uid($who);
  if($whonick!="")
  {

if(isowner(getuid_sid($sid)))
  {
  echo "<a href=\"tuancp.php?action=user&sid=$sid&who=$who\">*Owner Tools*</a><br/>";
  echo "<a href=\"tuancp.php?action=addhall&sid=$sid&who=$who\">Add To Hall Of Fame</a><br/>";
   }
if(isheadadmin(getuid_sid($sid)))
  {
  echo "<a href=\"headadmincp.php?action=user&sid=$sid&who=$who\">*Head Admin Tools*</a><br/>";
  }
if(isleft(getuid_sid($sid)))
  {
  echo "<a href=\"manacp.php?action=user&sid=$sid&who=$who\">*Manager Tools*</a><br/>";
  }
  if(ismod($uid))
  {
  if(!isowner(getuid_sid($sid)))
  {
  if(!isheadadmin(getuid_sid($sid)))
  {
  if(!isleft(getuid_sid($sid)))
  {
  echo "<a href=\"admincp.php?action=user&sid=$sid&who=$who\">*Admin Tools*</a><br/>";
  }
  }
  }
  }
echo "Members Rating: ";
echo rating($who);
echo " <br/>";
  $pmoodlink = getpmood($who);
  if($pmoodlink=="")
  {
  echo "";
  }else{
  echo "<img src=\"$pmoodlink\" alt=\"$whonick\"/><br/>";
  }
    if(isonline($who))
  {
    $iml = "<br/><img src=\"../images/onl.gif\" alt=\"+\"/>";
  }else{
    $iml = "<br/><img src=\"../images/ofl.gif\" alt=\"-\"/>";
  }
  $kaler = mysql_fetch_array(mysql_query("SELECT kaler FROM ibwf_users WHERE id='".$who."'"));
  //echo "<small><b><font color=\"$kaler[0]\">$iml$whonick's</font></b></small><br/>";
  $avlink = getavatar($who);
  if($avlink=="")
  {
  echo "<img src=\"thumb.php?image=nopics.gif&w=50&h=50&type=jpg\" alt=\"avatars\"/>";
  }else{
  echo "<img src=\"thumb.php?image=..$avlink&h=120&w=150&type=jpg\" alt=\"$whonick\"/>";
  }
  echo "<small><b><font color=\"$kaler[0]\">$iml$whonick's</font></b></small><br/>";

  $nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location, married FROM ibwf_users WHERE id='".$who."'"));
  $uage = getage($nopl[1]);
  if($nopl[0]=='M')
  {
    $usex = "Male";
  }else if($nopl[0]=='F'){
    $usex = "Female";
  }else{
    $usex = "Argh! No Profile!";
  }
  $location = htmlspecialchars($nopl[2]);
  $marit = htmlspecialchars($nopl[3]);
  echo "<b>$uage/$marit/$usex</b><br/>";

  $nopl = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'"));
  $sign = parsepm($nopl[0], $sid);
  $textkale = mysql_fetch_array(mysql_query("SELECT textkaler FROM ibwf_users WHERE id='".$who."'"));
  echo "</div><div align=\"center\"><font color=\"$textkale[0]\">$sign</font>";
  if(mypro(getuid_sid($sid), $who))
{

  echo " <a href=\"index.php?action=ucap&sid=$sid\">[e]</a>";
}else{
echo "";
}
echo "</div>";
    $private = mysql_fetch_array(mysql_query("SELECT private FROM ibwf_users WHERE id='".$who."'"));
  if(($private[0]=="1")||(arebuds($uid, $who))||(mypro(getuid_sid($sid), $who))||(ismod($uid))
)
{

  $random = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
  $rando = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
  $rand = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
  $ran = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
  $ra = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
  echo "<div align=\"center\"><b>$whonick's Random Gallery</b><br/>";
  echo "<a href=\"../pics/$random[0]\"><img src=\"thumb.php?image=../pics/$random[0]&w=30&h=30&type=jpg\" alt=\"*\"/></a>";
  echo " <a href=\"../pics/$rando[0]\"><img src=\"thumb.php?image=../pics/$rando[0]&w=30&h=30&type=jpg\" alt=\"*\"/></a>";
  echo " <a href=\"../pics/$rand[0]\"><img src=\"thumb.php?image=../pics/$rand[0]&w=30&h=30&type=jpg\" alt=\"*\"/></a>";
  echo " <a href=\"../pics/$ran[0]\"><img src=\"thumb.php?image=../pics/$ran[0]&w=30&h=30&type=jpg\" alt=\"*\"/></a>";
  echo " <a href=\"../pics/$ra[0]\"><img src=\"thumb.php?image=../pics/$ra[0]&w=30&h=30&type=jpg\" alt=\"*\"/></a><br/>";

  $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_gallery WHERE uid='".$who."'"));
  echo "<a href=\"gallery2.php?action=main&who=$who&sid=$sid\">View All Photos($countpics[0])</a><br/></div>";
  
  echo "<div align=\"left\"> <left><small><b>Member Id:</b> $who<br/>";
  echo "<b>Status:</b> ".getstatus($who)."<br/>";
  echo "<b>Special Status:</b> ".getvipstatus($who)."<br/>";
  $loc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$who."'"));

  echo "</div>";
  echo "<div>";

  $brt = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$who."'"));
  echo "<b>Zodiac:</b> " .getstarsign($brt[0]);
  echo "<br/>";
  echo "<b>Hometown:</b> $loc[0]<br/>";
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
  if($couple[0]=='1')
  {

  echo "<b>Couples:</b> ";
  $unick = getnick_uid($couple[2]);

  

  echo "With  $unick <br/>";
  }
$couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
if($couple[0]=='1')
  {

  echo "<b>Couples:</b> ";
  $nick = getnick_uid($couple[1]);

  

  echo "With $nick <br/>";
  }
  $about = mysql_fetch_array(mysql_query("SELECT about FROM ibwf_users WHERE id='".$who."'"));

  $abouts = parsepm($about[0], $sid);

  echo "<b>About Me:</b> $abouts<br/>";

  $mysite = mysql_fetch_array(mysql_query("SELECT mysite FROM ibwf_users WHERE id='".$who."'"));

  echo "<b>My Site:</b> <a href=\"$mysite[0]\">$mysite[0]</a><br/>";

  echo "</small></div><div><small>";
  $lst = mysql_fetch_array(mysql_query("SELECT lastplreas FROM ibwf_users WHERE id='".$who."'"));
  if($lst[0]=="")
{
echo "";
}
else
{
echo "<b>Last Plusses Reason:</b> $lst[0]<br/>";
}

  $sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
  $sql1 =$sql[0]+1;
  mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'");
  $sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
  echo "<b>Profile view:</b> $sql2[0] times<br/>";
$lv=getuid_sid($sid);
$me = getuid_sid($sid);
if ($me != "$who") 
{
mysql_query("INSERT INTO ibwf_lastview SET lastview='".$lv."', whonick='".$who."', ltime='".time()."'");
}
$sql= mysql_fetch_array(mysql_query("SELECT lastview,ltime FROM ibwf_lastview WHERE whonick='".$who."'ORDER BY ltime DESC LIMIT 1"));
$a = getuid_sid($sql[0]);
  $tm = time();
  $timeout = $tm - 86400; //time out = 1 day
  mysql_query("DELETE FROM ibwf_lastview WHERE ltime <'".$timeout."'");
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_lastview WHERE whonick='".$who."'"));
echo "<b>Today Viewer:</b> <a href=\"online.php?action=10pv&who=$who&sid=$sid\">$noi[0]</a><br/>";
  $nopl = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$who."'"));
  echo "<b>Lokasi:</b> $nopl[0]<br/>";
  $nopl = mysql_fetch_array(mysql_query("SELECT browserm FROM ibwf_users WHERE id='".$who."'"));
  echo "<b>Browser:</b> $nopl[0]<br/>";
  if(ismod(getuid_sid($sid)))
  {
  $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
  echo "<b>Ip:</b> <a href=\"lists.php?action=byip&sid=$sid&who=$who\">$uipadd[0]</a><br/>";
  }

  echo "</small></div><div><small>";

$me = getuid_sid($sid);
  if(mypro(getuid_sid($sid), $who))
{
  echo "<a href=\"index.php?action=style&sid=$sid\">Edit Style</a><br/>";

  echo "<a href=\"pro5.php?action=propass&sid=$sid\">Edit Profile</a><br/>";

    $priv = mysql_fetch_array(mysql_query("SELECT private FROM ibwf_users WHERE id='".$uid."'"));
if($priv[0]=="1")
{
  echo "<a href=\"genproc.php?action=private2&sid=$sid\">Private Profile</a><br/>";
}
else
{
  echo "<a href=\"genproc.php?action=private1&sid=$sid\">Normal Profile</a><br/>";
}

}else{
echo "";
}
  $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'"));

  if(budres($uid, $who)==0)
  {
    echo "<a href=\"genproc.php?action=bud&who=$who&sid=$sid&todo=add\">Add as Friends</a><br/>";
  }else if(budres($uid, $who)==1)
  {
    echo "(Queued Buddy Request)<br/>";
  }else if(budres($uid, $who)==2)
  {
    echo "<a href=\"genproc.php?action=bud&who=$who&sid=$sid&todo=del\">Del Friends</a><br/>";
  }
  if (arebuds($uid, $who))
  {
  echo "<a href=\"inbox.php?action=sendpopup&who=$who&sid=$sid\">Send Popup</a><br/>";
  echo "<a href=\"inbox.php?action=sendmmsg&who=$who&sid=$sid\">Send Funbox</a><br/>";
  }
  echo "<a href=\"inbox.php?action=sendpm&who=$who&sid=$sid\">Send Message</a><br/>";
  echo "<a href=\"index.php?action=more&who=$who&sid=$sid\">More Information</a><br/>";
  echo "<a href=\"index.php?action=page&who=$who&sid=$sid\">$whonick Pages</a><br>";
if($noi[0]>0)
{
  echo "<a href=\"lists.php?action=blogs&who=$who&sid=$sid\">$whonick Blogs($noi[0])</a><br/>";
}
 $noi2 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads WHERE uid='".$who."'"));
if($noi2[0]>0)
{
  echo "<a href=\"fshare.php?action=allup&who=$who&sid=$sid\">$whonick Files($noi2[0])</a><br>";
}
 $noi3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads2 WHERE uid='".$who."'"));
if($noi3[0]>0)
{
  echo "<a href=\"fshare.php?action=allup2&who=$who&sid=$sid\">$whonick Files V2($noi3[0])</a><br/>";
}

  echo "</small></div>";
  $vid = mysql_fetch_array(mysql_query("SELECT say FROM ibwf_users WHERE id='".$who."'"));
  $vide = "$vid[0]";
  if(($vide=="nothing to say")||($vide==""))
  {
  echo "";
  }
else
  {
  echo "<div align=\"center\">";
  echo "<b>$whonick's Media Boxs</b><br/>";
  echo "<embed src=\"../uploaded2/data/$vide\" height=\"100\" width=\"100\" loop=\"100\"/>";
  echo "</div>";
  }
if($themes[2]=="")
{

    echo "";

}
else
{
   echo "<div align=\"center\"><embed src=\"../uploaded2/data/$themes[2]\" height=\"30\" width=\"30\" hidden=\"false\" loop=\"50\"/></embed><br/>";
   echo "$themes[2]</div>";
}

    if($page=="" || $page<=0)$page=1;
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'"));
    $num_items = $noi[0]; //changable
    $items_per_page= 3;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    
        $sql = "SELECT gbowner, gbsigner, gbmsg, dtime, id FROM ibwf_gbook WHERE gbowner='".$who."' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page";

    echo "<div class=\"CM\" <left><b>Comments</b></div>";
    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
      $snick = getnick_uid($item[1]);

  $avlinkgb = getavatar($item[1]);
  if($avlinkgb=="")
  {
  $fotogb = "<img src=\"thumb.php?image=nopics.gif&w=30&h=30&type=jpg\" alt=\"avatars\"/>";
  }else{
  $fotogb = "<img src=\"thumb.php?image=..$avlinkgb&w=30&h=30&type=jpg\" alt=\"avatars\"/>";
  }
    
          echo "<div align=\"left\"><small>$fotogb<a href=\"index.php?action=viewuser&who=$item[1]&sid=$sid\">$snick</a><br/>";
      $bs = date("d/m/y-h:ia",$item[3]);
      if(candelgb($uid, $item[4]))
      {
        $delnk = "<a href=\"genproc.php?action=delfgb&sid=$sid&mid=$item[4]\">[x]</a>";
      }else{
        $delnk = "";
      }
      $text = parsepm($item[2], $sid);
      echo "$text<br/>$bs $delnk</small><br/></div>";
    }
    }
   $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'"));
  echo "<div class=\"MH\" <left><small><a href=\"lists.php?action=gbook&who=$who&sid=$sid\">View all ($noi[0])</a></small> ";
    if(cansigngb($uid, $who))
    {
    echo "<small>| <a href=\"index.php?action=signgb&sid=$sid&who=$who\">Post Comment</a></small><br/>";
    echo "<br/><form action=\"genproc.php?action=signgb&sid=$sid\" method=\"post\">";
    echo "<input type=\"hidden\" name=\"who\" Value=\"$who\">";
$show = mysql_fetch_array(mysql_query("SELECT icons FROM ibwf_users WHERE id='".$uid."'"));
if($show[0]==0)
{
    echo "<textarea name=\"msgtxt\" rows=\"3\" cols=\"25\" maxlength=\"500\"/></textarea><br/>";
}
else
{
    echo "<input type=\"text\" name=\"msgtxt\" maxlength=\"500\"/><br/>";
}
   echo "<input type=\"Submit\" name=\"Add\" Value=\"Post Comment\"></form>";
     }
    echo "</div>";
  echo "<div align=\"center\">";
  echo "<b>$whonick's Friends</b><br/>";
    if($page=="" || $page<=0)$page=1;
    $num_items = getnbuds($who); //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //changable sql
        $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$who."' OR b.tid='".$who."') AND b.agreed='1' AND a.id!='".$who."' GROUP BY 1,2  ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
        
        $avlink = getavatar($item[2]);
  if($avlink=="")
  {
  $ava = "<img src=\"thumb.php?image=nopics.gif&w=30&h=30&type=jpg\" alt=\"$item[1]\"/>";
  }else{
  $ava = "<img src=\"thumb.php?image=..$avlink&w=30&h=30&type=jpg\" alt=\"$item[1]\"/>";
  }
      $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&sid=$sid\">$ava</a>";
      echo "$lnk ";
    }
    }

  echo "<br/><a href=\"lists.php?action=friends&who=$who&sid=$sid\">More ".getnick_uid($who)." Friends(".getnbuds($who).")</a>";
  echo "</div>";

  }else{
  echo "<div align=\"center\">";
  echo "Profile Is Private!<br/>";
  echo "<a href=\"genproc.php?action=bud&who=$who&sid=$sid&todo=add\"><b>Add as Friends</b></a><br/>";
  echo "</div>";
  }
  echo "<div align=\"left\">";
   }else{
     echo "<img src=\"../images/notok.gif\" alt=\"X\"/> Member dos not exist<br/>";
   }
     if($lastloc=="cht"){
  echo "»<a href=\"chat.php?sid=$sid&rid=$rid\">Back to $rname</a><br/>"; 
  $tmsg = getpmcount(getuid_sid($sid));
  $umsg = getunreadpm(getuid_sid($sid));
            if ($umsg[0] > 0) {
  echo "»<a href=\"inbox.php?action=folderunread&sid=$sid\">MailBox($umsg)</a><br/>";
            } else {
  echo "»<a href=\"inbox.php?action=main&sid=$sid\">MailBox($umsg)</a><br/>";
            }
  echo forumlink($sid);
  echo "»<a href=\"lists.php?action=buds&sid=$sid\">Friends</a><br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"home\"/>Home Page</a>";    
  echo "</div>";
include("footer.php");
  echo "</body>";
  }else{
  $tmsg = getpmcount(getuid_sid($sid));
  $umsg = getunreadpm(getuid_sid($sid));
            if ($umsg[0] > 0) {
  echo "»<a href=\"inbox.php?action=folderunread&sid=$sid\">MailBox($umsg)</a><br/>";
            } else {
  echo "»<a href=\"inbox.php?action=main&sid=$sid\">MailBox($umsg)</a><br/>";
            }
  echo forumlink($sid);
  echo "»<a href=\"index.php?action=viewuser&sid=$sid&who=$uid\">My Profile</a><br/>";
  echo "»<a href=\"lists.php?action=buds&sid=$sid\">Friends</a><br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"home\"/>Home Page</a>";    
  echo "</div>";
include("footer.php");
  echo "</body>";
  }
}

bold words are the found error

wapmetal Lead · 609 posts #7
Notice: Undefined variable: who in /home/site/public_html/adult/web/index.php on line 634

Notice: Undefined index: lstloc in /home/site/public_html/adult/web/index.php on line 658

Notice: Undefined variable: who in /home/site/public_html/adult/web/index.php on line 664

Notice: Undefined index: mnick in /home/site/public_html/adult/web/index.php on line 666

declaration is not working hehe

so when it happens code is not working and i get else statements which is " Member dos not exist"

sorry for the english man!

CreativityKills Lead · 833 posts #9

Okay i spot ur problem. Um ima just explain so u can help urself debug next time.

1st error: Undefined variable who. . . The error occurs when you are trying to assign an undefined variable. In ur case its close to dat line.

wrong:
$nix = getnick_uid($who);

correct:
$who = (int) $_GET['who'];
$nix = getnick_uid($who);

2nd error: Undefined index lstloc. Usually when the requested array index is nt found. In ur case, the $_GET array doesnt contain d lstloc index. You can fix it in the url e.g &lstloc=value or beta stil, like dis:

$lstloc = isset($_GET['lstloc']) ? $_GET['lstloc'] : NULL;
$lastloc = cleanQuery($lstloc);

3rd error: undefined var who. Same as 1st error. Solving error 1 will fix it.

4th error. Another undefined array index. This time in the $_POST array. Solve dis by:

if(empty($who)){
$mnick = isset($_POST['mnick']) ? $_POST['mnick'] : NULL;
/* if(empty($who)) is a beta way of writing if($who == "" || $who == 0) */
bOrN2pwn Developer · 230 posts #18

Your script assumes that all variables ($who) are registered globally. This is a bad assumption to make.

Rather, use the variable from the $HTTP_POST_VARS array:

$who = $HTTP_POST_VARS["who"];

If you're using PHP version 4.1 or higher, you can alternatively use $_POST instead of $HTTP_POST_VARS.

Have fun...

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

wapmetal Lead · 609 posts #19

bOrN2pwn wrote: Your script assumes that all variables ($who) are registered globally. This is a bad assumption to make.

Rather, use the variable from the $HTTP_POST_VARS array:

$who = $HTTP_POST_VARS["who"];

If you're using PHP version 4.1 or higher, you can alternatively use $_POST instead of $HTTP_POST_VARS.

Have fun...

lol i found this on google bro but it don't work !

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close