mmeagher
08-31-2001, 10:39 AM
I am calling a php script from a flash animation on mouse over, and need to access fresh data with each call to the script. Due to the browser's caching function the script only gets called on the first mouse over.
Is there a way to send a time stamp or random number to the script with each call to trick the browser into calling the PHP script each time? I suspect this is a very basic question, but I can't seem to get anything to work.
I'm using the getURL command to call the script. I think my question comes down to: what is the syntax for sending multiple variables using getURL?
The relevant script is simply:
on (rollOver) {
getURL ("my_query4_roll.php?value="+32,"mydata");
}
I have tried multiple variants on this for sending the additional variable(s), such as:
on (rollOver) {
getURL ("my_query4_roll.php?value="+32"&myrand="math.rand(),"mydata");
Any assistance would be much appreciated.
Is there a way to send a time stamp or random number to the script with each call to trick the browser into calling the PHP script each time? I suspect this is a very basic question, but I can't seem to get anything to work.
I'm using the getURL command to call the script. I think my question comes down to: what is the syntax for sending multiple variables using getURL?
The relevant script is simply:
on (rollOver) {
getURL ("my_query4_roll.php?value="+32,"mydata");
}
I have tried multiple variants on this for sending the additional variable(s), such as:
on (rollOver) {
getURL ("my_query4_roll.php?value="+32"&myrand="math.rand(),"mydata");
Any assistance would be much appreciated.