/    Sign up×
Community /Pin to ProfileBookmark

displaying users input

hey. I am trying to create a form where I it begins with my text, then I have a textarea box for a user to type. Then, by clicking on the submit button, I would like for their text to appear under what I had typed originally. The purpose would be something like a continuing story that the user controls. This is extremely simple, I am sure for PHP users, I have a book here but have been unable to really understand all of what I need in it. It appears what I am asking is similar to a guestbook. Can someone show me code for this? I did find on here the code for a php guestbook as well as the tester page for it. Thats very similar to what I want, but the format would be a little different. Is taking the the gestbook code and manipulating it the best way to go? Additionally, I have no idea what CHMOD refers to. Is that something in the code I’d change in order to allow users access to write or is that something thats done through my provider? I dont get that part at all.
THanks in advance
D

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@PunkSktBrdr01Oct 27.2003 — 
  • 1. Editing the guestbook code might be the best way to go, as long as there isn't a copyright notice on the code.


  • 2. CHMOD is something used on *nix systems to set file permissions. You should be able to change the CHMOD settings in your FTP program.
  • Copy linkTweet thisAlerts:
    @pyroOct 27.2003 — I'm assuming the guestbook you are taking about is the one that I wrote [URL=http://forums.webdeveloper.com/showthread.php?s=&threadid=10856&highlight=guestbook]here[/URL]. If so, it is not copyright, and can be modified freely. Also, if that is close to what you are looking for, modifing it would indeed be a good way to go.

    Also, as PunkSktBrdr01 mentioned, CHMOD is how we set the file permissions on *nix servers. If you are on a Windows server, just set the file to not be read only.

    Good luck, and if you need any more help, let us know.
    Copy linkTweet thisAlerts:
    @derezzzauthorOct 27.2003 — thanks for the responses. I think I got it. I was talking about the guestbook that pyro posted-yes. So, all i do is set the file so it can be read and make myself a blank page called guestbook.html?
    Copy linkTweet thisAlerts:
    @pyroOct 27.2003 — No, the blank file is guestbook.txt (and that is also the file that you must CHMOD). The other file contains the code that I posted in the other thread, and must have a .php extention.
    Copy linkTweet thisAlerts:
    @aoeguyOct 30.2003 — Use $_POST["form field here"]

    to display the contents of the field name do this:

    [code=php]
    $name = $_POST["name"];

    echo $name;
    [/code]
    Copy linkTweet thisAlerts:
    @pyroOct 30.2003 — That won't be saved for other viewers to access later...
    Copy linkTweet thisAlerts:
    @aoeguyOct 30.2003 — Oh, thats what he want s done.
    Copy linkTweet thisAlerts:
    @pyroOct 30.2003 — It would appear that way...[i]Originally posted by derezzz [/i]

    [B]I would like for their text to appear under what I had typed originally. The purpose would be something like a continuing story that the user controls.[/B][/QUOTE]
    ×

    Success!

    Help @derezzz spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...