-4

I am building a movie recommended system. I want when a user login and rate a movie, the rating and movie name as well as user name will post to another page without going to that page automatically, i mean without pressing anything. How can I do that?

2 Answers2

0

You can do that by executing an ajax request (after clicking the vote-button), which sends data (you can define the data to be what you want - rating, movie and user) to a php script that you will have to create.

the php script will read the posted data that the ajax has sent and can insert/update the database.

This way, the user will not be redirected. he won't even notice.

Community
  • 1
  • 1
kscherrer
  • 5,486
  • 2
  • 19
  • 59
-2

You can achieve this by using some kind of ajax requests triggered by vote event or callback.

Dima Vishnyakov
  • 1,361
  • 10
  • 21