Results 1 to 2 of 2

Thread: [Javascript/HTML/PHP] Chat... / Updating page..

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    [Javascript/HTML/PHP] Chat... / Updating page..

    Hello i want to make it so there is a textbox on a page. When a user writes in the textbox and clicks the enter key on his/her keyboard the text the user entered will be added on the page... simulating a chat / mini-forum.

    Basicly how do i edit the text of a page with JavaScript / HTML, if you can't then how about php..?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [Javascript/HTML/PHP] Chat... / Updating page..

    I have found some code:

    Example:
    Code:
    <?php 
    $File = "YourFile.txt"; 
    $Handle = fopen($File, 'w');
    $Data = "Jane Doe\n"; 
    fwrite($Handle, $Data); 
    $Data = "Bilbo Jones\n"; 
    fwrite($Handle, $Data); 
    print "Data Written"; 
    fclose($Handle); 
    ?>
    So i was thinking i can use this to edit my html page. Though now i need to place a frame of my other page that is being updated on my chat page. How do i place a frame showing my other page?...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width