Xproterg
12-23-2005, 06:18 PM
I've been working on a new javascript game for a while now. At the end of the game I've been trying to get my javascript to submit information to a php script, which, in turn, writes that highscores data to a file. I need the script to be executed once the last image on the final page loads. SO... I was wondering two things.
1) How do I get a javascript to autosubmit two simple variables to a php script.
2) How do I place that javascript in my image tag?
<img src=congratulations.jpg onload='javascript: var1=time; var2=name;
I'm totally lost after this...
Any help?
1) How do I get a javascript to autosubmit two simple variables to a php script.
2) How do I place that javascript in my image tag?
<img src=congratulations.jpg onload='javascript: var1=time; var2=name;
I'm totally lost after this...
Any help?