Tuesday, November 17, 2009

Free HTML Guestbook Source Code

Simple Guestbook with File System If you need a plain HTML guestbook, it is may not be possible to have a Guest Book only with HTML.We need a server side scripting like ASP,JSP,ASP.Net,PHP in server to track the guests. But now a days it is easier to find an Asp.Net enabled host for cheaper prices. It should be noted that. Though the databases best to save guestbooks. I have used a flat file for simple explanations. As the target of this article is not going to provide a full working application. The article is for beginners to learn how to start with. For a complete detailed explanation with sample visit HTML Guestbook Source Code Write to File System based GuestBook The guest book is going to be a file system based. We need delimitters for storing the data in a proper way. There are two segments we need to consider for delimiters, one is for the row delimiter another is a column delimiter. So we will use ~ as row delimiter. we can use | to delimit the columns
Guest Book Text file Parser The GuestBook text file can be parsed again with another Page to load in the screen by using a Split() function '~' To delimit a guest(row) '|' To delimit attributes as name email and comments(column)
split using '~', will yeild the entire guest book entry for one visitor. Further parsing again using split with |, First element is Name, Second element is e-mail, third element is comments. It can be displayed easily with some HTML formatting.For complete information with sample code HTML Guestbook Source Code

No comments:

Post a Comment