Groups | Blog | Home
all groups > flash data integration > march 2006 >

flash data integration : looking to send data to php only



ck1mark
3/22/2006 10:32:33 PM
I am using this code which is wrong but i havent found how..
var url:String = "http://www.milliondollarring.com/updateClicked.php";
var dataToSend:String = "&clicks=" + obj;
var sender:LoadVars = new LoadVars();
sender.send(url, dataToSend, "POST");

<?php
$recieve = $_POST;
?>

Motion Maker
3/23/2006 12:00:15 PM
[quoted text, click to view]
1. What is the error?????
2. A send only action leaves your debugging to the server side such as a
dump of variables to a text file or other means to see if the script worked.
The send method does not return anything to Flash for you to debug. Rarely
does send meet client server needs as often the client side needs some
confirmation of the server side performance.

3. I cannot see where you are using the variable clicks in the PHP. The PHP
is only assigning the superglobal $_POST to another variable but not
addressing the elements as perhaps like this:
$_POST['clicks']
or
$recieve['clicks']



--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
I am using this code which is wrong but i havent found how..
var url:String = "http://www.milliondollarring.com/updateClicked.php";
var dataToSend:String = "&clicks=" + obj;
var sender:LoadVars = new LoadVars();
sender.send(url, dataToSend, "POST");

<?php
$recieve = $_POST;
?>

AddThis Social Bookmark Button