4 Replies Latest reply on Sep 9, 2008 7:34 AM by bigeyedbeans

    Missing parameters for PHP script

      Hi - I'm completely new to Flash (I'm using Flash MX ca. 2002) ) and I'm experimenting with setting up an form that passes parameters to a PHP script. When I do a Publish Preview direct to Flash this works fine; if I publish to an HTML page the parameters do not appear in the browser address bar - so instead of http://www.mysite.com/flashtest.php?commname=daisy&latname=Bellis perennis I just get http://www.mysite.com/flashtest.php. My ActionScript looks like this:

      function doSubmit() {
      userData = new LoadVars();
      userData.latname = latinName.getSelectedItem().label;
      userData.commname = commonName.getSelectedItem().label;;
      userData.send(" http://www.mysite.com/flashtest1.php", "", "post");

      and the html like this:

      <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
      codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
      WIDTH="291" HEIGHT="234" id="flashForm1" ALIGN="">
      <PARAM NAME=movie VALUE="flashForm1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#66FFFF> <EMBED src="flashForm1.swf" quality=high bgcolor=#66FFFF WIDTH="291" HEIGHT="234" NAME="flashForm1" ALIGN=""
      TYPE="application/x-shockwave-flash" PLUGINSPAGE=" http://www.macromedia.com/go/getflashplayer"></EMBED>

      Any help much appreciated.