Hello all.
In this post I do not ask for a complete script, but for an explanation…
I’ve been programming these past few months a lot with php, but its past time now that I start create javascript pages for better accessibility and feel.
In this case, my aim is to create a simple feedback system with voting capacities.
I have divs (representing stars) that change color when clicked on using javascript. They change size too, depending on what level it was posted (for example, if user votes for 5 stars, the div becomes big and changes color). Its just a nice looking thing….
But its useless unless I can use it to process the votes and send them in a database.
So here is what I’d like to do, but don’t know how:
User votes for all the questions on the page, then i have a button that send the votes to the database such as:
Do you like…
apples? ◌1 ◌2 ◌3 ◌4 ◌5
oranges? ◌1 ◌2 ◌3 ◌4 ◌5
[INDENT][Vote][/INDENT]
Now how could I make user click on a div, without reloading the page, then send them to a database and by mail?
Cause if it was radio checkboxes it would be easy… but its divs or images and I don’t know how to memorize the selection and then use it with php.