Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    ps, if you want the code, im not sure if i still have my old "simple guest book" script still uploaded, but if it is, you can pretty much just copy the useinfo.php 's file appending bit if you like. I wrote it years back though so the codeings fugly.

  2. #12
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Do you mean like a contact form and like only Admin's can see it through the Admin Panel?
    Looking for a good desiner to design a social networking template.

    PM me.

  3. #13
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by chrisgocrazyH View Post
    Is this possible, ok i want to have a form where you type yourname & a big text area to right like heaps of stuff.. & i want it when you hit OK it saves that to a diffrent page? -LIKE AN EMAIL FORM BUT IT DOSENT GET SEND TO YOUR EMAIL IT GESTS SEND TO A PAGE THAT PEOPLE CAN READ IT (A DIFFRENT PAGE NO LIKE A SHOUT BOX WHERE IT GOES UP THE TOP)


    Any help?


    - Ill rep if u get a link or code it for me..
    Like a DJ Says?
    EDTALKING


  4. #14
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    If you want to make a single page for each message just do this (I coded this in 2mins so it's rubbish, lol).


    Wahetver.php:
    PHP Code:
    <?php

    if( $_GET"action" ] == "send" && $_POST"username" ] && $_POST"msg" ] ) {

        
    $username $_POST"username" ];
        
    $message $_POST"message" ];
        
        
    $filename rand0999999 );
        
        
    $fopen = @fopen""$rand .".txt""x+t" );
        @
    fwrite$fopen"{$username}{$message}) or die( 'Could not write data' );
        @
    flclose$fopen );
        
        echo( 
    "Message Saved, click <a href=\""$rand.".txt\" target=\"_self\">here</a> to see your message!" );

    }

    else

    {
    ?>
    <form action="?action=send" method="post">
    Username:<br />
    <input type="text" name="username" />
    <br /><br />
    Messsge:<br />
    <textarea name="msg"></textarea>
    <br /><br />
    <input type="submit" name="submit" value="Post" />
    </form>
    <?php

    }
        
    ?>
    It lets the user input their chosen Username & Message and then saves it to a file with a random name (numerical name).
    Last edited by Invent; 19-06-2007 at 03:10 PM.

  5. #15
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    yes like DJ SAYS
    like dj says?


    - EDIT SOZ FOR DUBBLE POST
    Quote:
    Originally Posted by Invent
    If you want to make a single page for each message just do this (I coded this in 2mins so it's rubbish, lol).

    Quote:
    Originally Posted by Invent


    Wahetver.php:
    PHP Code:

    <?php


    if( $_GET[ "action" ] == "send" && $_POST[ "username" ] && $_POST[ "msg" ] ) {

    $username = $_POST[ "username" ];
    $message = $_POST[ "message" ];

    $filename = rand( 0, 999999 );

    $fopen = @fopen( "". $rand .".txt", "x+t" );
    @fwrite( $fopen, "{$username}: {$message}" ) or die( 'Could not write data' );
    @flclose( $fopen );

    echo( "Message Saved, click <a href=\"". $rand.".txt\" target=\"_self\">here</a> to see your message!" );

    }

    else

    {
    ?>
    <form action="?action=send" method="post">
    Username:<br />
    <input type="text" name="username" />
    <br /><br />
    Messsge:<br />
    <textarea name="msg"></textarea>
    <br /><br />
    <input type="submit" name="submit" value="Post" />
    </form>
    <?php

    }

    ?>




    It lets the user input their chosen Username & Message and then saves it to a file with a random name (numerical name).





    - I uploaded it to my SERVER & every time i do a message it goes "Could not write data"

    __________________
    Last edited by chrisgocrazyH; 19-06-2007 at 11:51 PM.
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  6. #16
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    -SOZ For dubble post - i deleted whats in dis one & put on top one..
    Last edited by chrisgocrazyH; 19-06-2007 at 11:52 PM.
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  7. #17
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Okay... well I have a script on my site called an "Eazy Logger" which writes data to a text file. All you would have to do is modify it to accept the data from a form that it puts in the text file and voila!

    Click sig -> left hand side menu -> Freebies -> Eazy Logger

    Don't forget to CHMOD the text file

  8. #18
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    ill try it..



    - i couldent do it soz..
    Last edited by chrisgocrazyH; 20-06-2007 at 01:22 AM.
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

Page 2 of 2 FirstFirst 12

Posting Permissions

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