By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

PHP comment feature

P: 2
Hello,

I have a site that displays a video, and allows the user to comment. Currently, to comment the user enters their comment into a textbox, and submit it to a separate PHP file, that adds the comment to a database and then redirects the user back to the video page. The problem with this is that the video restarts every time the user comments.

To solve this, I was thinking of having the php to submit the comment to the database on the same file as the video, thus not making the video restart and pissing off my viewers.

How can I do this? Is there a way to call a PHP function from the HTML form?

Thanks,

Legs
Oct 21 '08 #1
Share this Question
Share on Google+
3 Replies


Markus
Expert 5K+
P: 6,050
What you're thinking of is not refreshing the page while you submit data? If so, Ajax is what you're after.
Oct 21 '08 #2

P: 2
What you're thinking of is not refreshing the page while you submit data? If so, Ajax is what you're after.

Thanks a lot! Exactly what I was looking for!
Oct 21 '08 #3

Markus
Expert 5K+
P: 6,050
Thanks a lot! Exactly what I was looking for!
No problamo.

Markus.
Oct 21 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.