Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93032

Re: How to echo a Flash variable in Php

$
0
0

So,i did all you told me(traced all stages..)the output panel proved good.But php did not receive anything. So i flipped the script from the above into this--->

 

AS Code [i made changes to onData() by using .onLoad() in Line 4 ]

 

stop();

var send_lv:LoadVars = new LoadVars();

var receive_lv:LoadVars = new LoadVars();

send_lv.onLoad = function(ok) {      //trying to make it available for php by onload

  if (ok) {

  error_box.text = 'Going for handshake with php,Thanks!!';     // decided to use textfield to display the echos

  } else {

  (error_box.text='Sorry..No Php');

  }

};

submit_btn.onRelease = function() {

  trace("sending: "+Age_txt.text);

  // for debugging

  if (Age_txt.text != '') {

  send_lv.Age = Age_txt.text;

  trace("Age: "+send_lv.Age);     //  I traced like this: +send_lv.Age instead of this: +Age bcos this: +Age gives an error in the output panel

  send_lv.sendAndLoad("goto.php", "receive_lv", "POST");

  trace(receive_lv);

  //getURL("goto.php", "_blank", "POST");

  } else {

  error_box.text = 'Fill fields correctly';

  }

};

 

 

then in Php, i swapped only between  _POST['Age'] for this: _POST['Age_txt] and backwards several times trying diff outcomes..yet NO JOY!


Viewing all articles
Browse latest Browse all 93032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>