Hello!
I've made myself a website, and I was woundering if someone culd help me out.
I want to add a "Guest Log", where you can write a name and some text, wich then will be posted on the website.
My thought is that I simply have a textdocument called "glog" and have all the inputs being written and saved inside that txt document and then just print that shit out on the page.
I just don't know how to so this.
- Any help / other ideas is much apreciated.
Gonna have to use some basic PHP
[url]http://davidwalsh.name/basic-php-file-handling-create-open-read-write-append-close-delete[/url]
Hey!
Next time around when you have a web programming question, look in the 'Web Development' subforum
[url]http://facepunch.com/forums/353[/url]
More specifically, this thread: [url]http://facepunch.com/showthread.php?t=1250244[/url]
[QUOTE=loppan997;43667929]Hello!
I've made myself a website, and I was woundering if someone culd help me out.
I want to add a "Guest Log", where you can write a name and some text, wich then will be posted on the website.
My thought is that I simply have a textdocument called "glog" and have all the inputs being written and saved inside that txt document and then just print that shit out on the page.
I just don't know how to so this.
- Any help / other ideas is much apreciated.[/QUOTE]
As Cody said, if you want your page to be dynamic you will have to use a server-side language ( php, ruby, asp, python, etc.)
Also, reading/writing to a text file is a way to do it, but I highly recommend doing it with a database because of the flexibility. However, learning php and how to use database is not an easy task if you just started with html. I learnt this stuff in class so I can't tell you if this tutorial : [url]http://www.homeandlearn.co.uk/php/php.html[/url] is good, but it seems to cover the base of php and databases.
Sorry, you need to Log In to post a reply to this thread.