|
Ok so I want it so when you click on one of two images it updates the database with a different value. If you click the first is updates the database with one value, and the other updates a different one. In terms of php/mysql this is no problem it is the AJAX that I don't know well. I already made an HTML form with a text field that would update one of two values depending on which on you enter but I dont know how to do this with just an image and no submit button.
So when you press the button it has to set the variable to either 1 or 2 depending on whether you press the first or second image, then it needs to activate the function I have for the ajax sending to the php file. Once it sets the variables and initiates the ajax function I can do it from there.
Last edited by J0ker : 12-29-2007 at 01:24 AM.
|