• HTML user input, post to page?
    9 replies, posted
Just wondering, how would I post a users text input onto part of the html page? For example, user1 types a phrase into a text field, clicks the submit button and the text appears on the body of the page (and is thereafter viewable by any other visitors to the page). Thanks in advance guys.
Try [url]http://www.facepunch.com/forumdisplay.php?353-Web-Development[/url]
This isn't possible in pure HTML. If you wanted to do this, you would probably need to create a php script that received the input and saved it to a database. Another php script would then grab all of the entries from the database and print them for visitors to see.
You can do it with JavaScript.
[QUOTE=X'Trapolis;25436058]You can do it with JavaScript.[/QUOTE] No you can't, not purely in Javascript. From what I understand he wants the text to be viewable by other people (ie a guestbook or comments page). The only way to do that is to have some kind of php/asp/whatever script set up to read from a database or text file.
nevermind, bad reading. Didn't see the "viewable by others" part
AJAX might do the trick, although it'll have a quite heavy server load.
php is a glorified HTML preprocessor, I find php code ugly as hell. There are some really easy to use webframeworks for python. webpy, django, etc.
Google App Engine seems fine too. Anyone have any experience with it?
[QUOTE=AaRoNg11;25436123]No you can't, not purely in Javascript. From what I understand he wants the text to be viewable by other people (ie a guestbook or comments page). The only way to do that is to have some kind of php/asp/whatever script set up to read from a database or text file.[/QUOTE] I thought you could do it with javasc...oh wait. For persistent changes that wouldn't work.
Sorry, you need to Log In to post a reply to this thread.