PDA

View Full Version : Javascript values >> PHP variables


bluemicrobyte
06-02-2006, 3:24 AM
I have an interesting and unusal task. I found this script:

http://www.dynamicdrive.com/dynamicindex4/image3.htm

Which allows you to have elements be dragged anywhere.


Using that script - is it possible to, once a user has moved an item around, pass that value (the location - x and y values of the object) to a PHP script for processing?

Jeff
06-10-2006, 2:19 PM
Yes, it should be possible... when the user releases the mouse button have the JavaScript access a PHP script with the x and y values.

I'm not going to figure out the code for you though, I'm not that great with JavaScript and it would probably take me a while. :)