PHP comment feature

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • legsmacgee
    New Member
    • Oct 2008
    • 2

    PHP comment feature

    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
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

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

    Comment

    • legsmacgee
      New Member
      • Oct 2008
      • 2

      #3
      Originally posted by Markus
      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!

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by legsmacgee
        Thanks a lot! Exactly what I was looking for!
        No problamo.

        Markus.

        Comment

        Working...