| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Tech Support Join Date: Mar 2005
Posts: 4,944
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Simple GuestBook A simple guestbook. Stores information in a text file. EDIT: Script Updated. Now v1.0.2 ![]() If you have any problems with this script, i.e. Any errors. Or, if you have any suggestions, PM or reply to this thread. -Tweaked the code a lil. -Few minor bugs fixed. guestbook.php (Displays Entries) PHP Code: HTML Code: <html> <head> <title>Add an Entry</title> </head> <body> <form method="post" action="addentry.php"> Name: <br> <input name="name" type="text" size="30" maxlength="40"> <br><br> Email: <br> <input name="email" type="text" size="30" maxlength="40"> <br><br> Home Page: <br> <input name="site" type="text" size="30" value="http://" maxlength="40"> <br><br> Message: <br> <textarea name="message" cols="25" rows="5"> </textarea> <br><br> <input type="submit" value="Add"> </form> </body> </html> PHP Code: PHP Code: Enjoy
Last edited by SecondVersion; 11-22-2005 at 08:08 AM.
|
| |
| | #2 (permalink) |
| NamePros Member Join Date: Sep 2005 Location: Ontario Canada
Posts: 181
![]() ![]() | I have a small problem with mine when you go to view the entries the html code popes up also how would you delete them if there are any negative ones? http://www.kvchosting.com/code/addentry.html - my version of your code |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Jun 2005 Location: Indiana, USA
Posts: 391
![]() ![]() ![]() | Ive got this up and running on my site (http://scoville-jenkins.com/guest_book/guestbook.php). Seems to work really well! I did add a link to the add entry page on the main page and then I added a link back to the main page on the thank you page, since those pages didnt have links back already. And I also aint got the edit page up since I wasnt quite sure how to work it lol. Anyways... as I said, works great! Thanks SV! |
| |
| | #8 (permalink) |
| NamePros Member Join Date: Sep 2005 Location: Ontario Canada
Posts: 181
![]() ![]() | AJ how did u get it so that you can click on the links rather then copy and paste them into your browser like i have done here - http://www.kvchosting.com/code/addentry.html |
| |
| | THREAD STARTER #9 (permalink) | ||||
| Tech Support Join Date: Mar 2005
Posts: 4,944
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=109338 Hello AJ, Thanks, I'm glad you like it. The edit page, just upload to your server, then go to http://www.yourdomain.com/path/to/edit.php Enter user and pass, then you can delete/edit entries. ![]() Psssssst, I'm working on a SQL version. ![]() -Eric | ||||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Simple site management with the use of PHP and the query string(?page=1) | deadserious | Webmaster Tutorials | 8 | 10-09-2004 01:20 PM |
| Guestbook form??? | majinfaisal | Web Design Discussion | 7 | 08-14-2004 12:10 AM |
| Tutorial: Creating a simple cgi hit counter for your site using Perl | deadserious | Webmaster Tutorials | 3 | 05-29-2004 01:31 AM |