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?
Asked
Active
Viewed 75 times
-4
-
DId you even Google your title/question first? – Funk Forty Niner Jan 20 '17 at 13:55
-
In any case; the question is way too broad and showed no effort. – Funk Forty Niner Jan 20 '17 at 13:57
-
So... what have you tried? – Moe Jan 20 '17 at 13:57
-
Yes, i searched a lot..but i want to post title, username and rating automatically when user rate a movie. – Chandler Jan 20 '17 at 13:59
-
well, someone provided you with an answer below, see that. – Funk Forty Niner Jan 20 '17 at 14:00
2 Answers
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.
-2
You can achieve this by using some kind of ajax requests triggered by vote
event or callback.

Dima Vishnyakov
- 1,361
- 10
- 21
-
that's a pretty vague answer, wouldn't you agree if someone gave you the same type of answer? think about it for a minute. – Funk Forty Niner Jan 20 '17 at 13:58
-
That downvote you just received, I can honestly say is not mine. – Funk Forty Niner Jan 20 '17 at 14:02