1 Reply Latest reply on Aug 2, 2008 8:21 AM by kglad

    LoadVars Problem

    Pinkmischief Level 1
      Hi i have this code which is returning a weird result :S
      At the top of the timeline is Actions layer which has
      var Result = new LoadVars();

      Now in the trace(Result) i am receiving Result : %3C%21DOCTYPE%20html%20PUBLIC%20%22%2D%2F%2FW3C%2F%2FDTD%20XHTML%201%2E0%20Transitional%2 F%2FEN%22%20%22http%3A%2F%2Fwww%2Ew3%2Eorg%2FTR%2Fxhtml1%2FDTD%2Fxhtml1%2Dtransitional%2Ed td%22%3E%0D%0A%3Chtml%20xmlns=%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F1999%2Fxhtml%22%3E%0D%0A%3C head%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DType%22%20content%3D%22text%2Fhtml%3B%2 0charset%3Diso%2D8859%2D1%22%20%2F%3E%0D%0A%3Ctitle%3EUntitled%20Document%3C%2Ftitle%3E%0D %0A%3C%2Fhead%3E%0D%0A%0D%0A%3Cbody%3E%0D%0AYou%20are%20not%20registered%3Cbr%3E%0D%0A%09% 09Num%20Rows%3A%200%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E%0D%0A&onLoad=%5Btype%20Function%5D
      which from what i can see is the page type and such information.

      What i have in PHP in that Page is
      $Username = ucfirst($_GET['Username']);
      $Userpassword = md5($_POST['Userpassword']);

      //Search for user in DB
      $sql = ("SELECT * FROM `users` WHERE `Username` = '".$Username."'");
      $query = mysql_query($sql);
      $result = mysql_num_rows($query);
      if($result == 0){
      echo "You are not registered<br>
      Num Rows: ".$result."";
      }else{
      //write back to flash YES user is registered
      echo "&login=YES";
      ///////
      //echo "You are registered";
      }

      Any help is appreciated thanks :)

      Regards Pinky ( Flash Newbie )