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
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
Comment