title: PHP variables to Flash via AS2 Returns Undefined
body: <p>Really need another set of eyes on this, and thanks in advance!  My php code:</p>
  
  <pre><code>&lt;?php 
  header('Location: videorecord.html');
  $hour = time() + 3600;
  setcookie(UserName, $_POST['UserName'], $hour); 
  $_COOKIE["UserName"];
  
  mysql_connect("localhost", "XXX", "XXX") or die(mysql_error());
  mysql_select_db("XXX") or die(mysql_error());
  $insert = "INSERT INTO usercards (RecName, Message, RecEmail, EventTitle)
          VALUES 
  ('$_POST[RecName]', '$_POST[Message]', '$_POST[RecEmail]',   '$_POST[EventTitle]')";   
  $add_member = mysql_query($insert);
  $var1="recpt=".$_POST['RecName'];
  echo "&amp;lVar1=$var1";
  ?&gt;     
  </code></pre>
  
  <p>Sending the variables via a AS2 script to a swf contained in the header file.  The AS2 code:</p>
  
  <pre><code>lv = new LoadVars();
  // define onLoad Callback
  lv.onLoad = onLoadCallBack;
  // send and load variables
  lv.load("http://XXXXX.com/pages/process_card.php");
  
  // onLoad Callback
  function onLoadCallBack(success)
  {
  // if succes
  if(success)
  {
      // trace variables
     trace(this.lVar1);
       _global.lVar1 = this.lVar1;
  
  }
  else
  {
      // loading failed
      trace("Loading Error!!");
  }
  }
  //end getting the external data
  
  var movieName:String = lVar1;
  </code></pre>
  
  <p>End result keep getting undefined for the return.
  I do php but this AS2 stuff is new to me (got the code thru google), little better at AS3.
  Appreciate any suggestions, help, 2 days of looking for answers and I'm about done for.
  Thanks</p>