Php Refreshes form also....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolgames
    New Member
    • Oct 2007
    • 168

    Php Refreshes form also....

    Hello, i have a problem with refreshing pages.
    here's the code for *talk.php* and i would only like to refresh a section of it.

    [PHP]
    global $session;
    popup_header("V illage Talk");
    require_once("l ib/commentary.php" );
    addcommentary() ;
    commentdisplay( "","talk","",15 ,"says");
    rawoutput("<h4> ");
    output("`n`n`c` vIf you are in this page because you clicked on someone's bio and then clicked *Return to...*, please poke the user 2 times and you should be back. If not, please Callformod or Petition.`c", true);
    popup_footer();
    [/PHP]

    i would only like to refresh COMMENTS that as posted but, the whole page refreshes, which means once a user is typing something, they loose if after the refresh.
    [PHP]
    require_once("l ib/commentary.php" );
    addcommentary() ;
    commentdisplay( "","talk","",15 ,"says");
    [/PHP]
    lib/commentry.php, a very long file but here you go:
    code split into 2 files
    (attached)
    Attached Files
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You have too much code! Repost your question and attach the code itself as a txt file in an attachment.

    moderator

    Comment

    • coolgames
      New Member
      • Oct 2007
      • 168

      #3
      how do i delete a post?? .....

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        You expect us to actually read through that?

        Think again.

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Originally posted by coolgames
          how do i delete a post?? .....
          Don't have to delete it. Just ask the question again and store the code in a txt file that you can attach to your post. By the way: i wonder if anyone is going to read al that code!!

          moderator

          Comment

          • aktar
            New Member
            • Jul 2006
            • 105

            #6
            It sound like AJAX might be useful to you

            Comment

            • ronverdonk
              Recognized Expert Specialist
              • Jul 2006
              • 4259

              #7
              Originally posted by aktar
              It sound like AJAX might be useful to you
              Why is that? Í don't understand where you are going, please explain this Ajax solution a bit further.

              Ronald

              Comment

              • coolgames
                New Member
                • Oct 2007
                • 168

                #8
                Originally posted by aktar
                It sound like AJAX might be useful to you
                yes i do realise that ajax will be the best but, i don't know how to create those elements and make so that only the chat works.

                Thanks xD

                Comment

                Working...