Basically what i want to do if have a button pressed to increment a number in
a database.
Hope you can help as i would be very greatful .
Peter
If you have a php page on your server, you do something like so in Flash:
var rv = new LoadVars(); //for receiving the result
rv.onLoad = function(success:Boolean){
trace(this["ok"]);
}
var sv = new LoadVars(); //for sending to php
sv.inc = 1;
sv.sendAndLoad("someDomain.com/myphpfile.php", rv);
then in your myphpfile.php you would do like so:
<?php
$inc = $_REQUEST['inc'];
if($inc == '1'){
//do the inc
}
echo "&ok=1"; //send ok back to flash
?>
--
Dave -
www.offroadfire.com
Adobe Community Expert
http://www.adobe.com/communities/experts/