ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash




Script Output:

Sign Our Guestbook:

Name:
Comment:

Today's Comments:

John: I hope you like our guestbook!

ASP HTML Download            FAQ

ASP.NET Version

I'll keep the commentary short on this one, mainly because it really doesn't do all that much.

Here's a quick run down. We ask for input. If we get it, it gets logged to a text file which actually contains any HTML code we want in our resulting page as well as the comments. To show the comments we just include the file into our script. That's it!

Well almost. For our sanity, we've implemented two other features that you may want to take out if you are going to use this script. The first deletes all comments at the first load of the page after midnight. This way we keep it relatively small. This is after all a sample of a guestbook and not a real guestbook! The second one (which actually uses the same code as the first) we built in to let us empty it easily at will. Hopefully, we'll never need to use it!

If you care, here's the raw guestbook.txt file.


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers