3 Replies Latest reply on Jan 29, 2008 2:57 AM by aniebel

    sending variables from flash to PHP

    wishRaj
      Hi everyone,
      I have a problem while sending variables from flash to PHP
      Here is the code:

      submit.onPress = function ()
      {
      c = new LoadVars ();
      c.nme = "MyName";
      c.sendAndLoad ("getVars.php", Reply, "POST");
      }

      PHP Code:

      <?php
      $name = $_POST['nme'];
      print "Your name is ". $name . ".<br>";
      ?>

      What am i doing wrong here.
      I am getting an error saying Notice: Undefined index: name in \xxx\getVars.php on line 2

      Please help me. Thanks in advance