PDA

View Full Version : Load php value


lammspillning
01-13-2008, 07:45 PM
I have a script I think should send a value that a radiobutton creates to a PHP. My problem is now:
I want a dynamic textbox in a different movieclip to retrieve and show the value that has been sent to the PHP file.
How would I go on doing that?
This is the code I have to send the value:
Button.onRelease = function() {
//trace(radioBtn_value);

var lv = new LoadVars();
lv.sendToPHP = radioBtn_value;

lv.sendAndLoad("myPHP.php",lv,"POST");
}

sneakyimp
01-22-2008, 08:29 PM
You would need to set up PHP to store the data - this requires that you write the data to a file or to a database or perhaps a cookie. Cookie is probably easiest.