Hi,
I want to implement like and dislike buttons in a webpage. I know how to do it if the voting sent the user to another page, but I want:
1. The webpage to stay the same, no redirecting
2. The MySQL database to update
3. To disable the like and dislike buttons once the user has voted.
I have no idea how to do this. Does anyone have the answer or a tutorial I could read?
Thanks
In either case you need to allow for the url variable vote being NULL when index.php is first displayed.
That's still redirecting, not leaving the webpage is making an ajax request... OP stated he/she knows how to do this already - but not how to do it without leaving the current page
Bookmarks