Guestbook in PHP or just ASP

If you need help with something which doesn't fit in to another forum section, then post here.

Guestbook in PHP or just ASP

Postby n0rd on Sat Dec 11, 2010 9:47 am

Hi!

I'm trying to do a guestbook for an organization that Im helping out.
I have watched some tutorials so I know what to write and how.

I have thought how to do this and I consider between two different ways.
1. The standard myPHPadmin + a database.
2. A .ASP page who use a regular .TXT as the database.

So what does you recommend and have you any other ideas?

I also wonder how I can throw in all the code in a regular .html page so I still have the same background and my buttons still working.

This is the page I'm working on: http://www.lindesbergskateboard.se/
and I would like to put all the comments (guestbook) under all the emails on this page: http://www.lindesbergskateboard.se/Kontaktaoss.html

Help?

//n0rd :)
Image
Feel free to ask questions - n0rd|UKCS| Image / Image
User avatar
n0rd
UKCS Sponsor
 
Player: n0rd
STEAM_0:0:12198010
 
Posts: 5064
Joined: Tue Oct 28, 2008 1:46 pm
Location: Sweden, Örebro, Chewbaccastan



Image

Re: Guestbook in PHP or just ASP

Postby Dym on Wed Dec 22, 2010 9:49 am

You may check http://www.hotscripts.com/ (or other similar websites) for free guestbook scripts and implement one of those on Your Page.

If You want to make Your Own Guestbook System, You will face many things like protecting it from Automatic Posting Robots, XSS and SQLInjection attacks, and many other smaller issues.

So be prepared for lots of work (and fun?) if You want to make it on Your own :)

Using Database and SQL is generally better solution than putting data into simple txt file.


User avatar
Dym
UKCS Sponsor
 
Player: Dym
STEAM_0:0:3468041
 
Posts: 207
Joined: Wed Mar 29, 2006 2:46 am



Image

Re: Guestbook in PHP or just ASP

Postby n0rd on Wed Dec 22, 2010 10:36 pm

Thanks for the help, I have already made my own guestbook system although I haven't solved it so I can put in a regular html page...

here is the guestbook: http://www.lindesbergskateboard.se/guestbook/index.php
Image
Feel free to ask questions - n0rd|UKCS| Image / Image
User avatar
n0rd
UKCS Sponsor
 
Player: n0rd
STEAM_0:0:12198010
 
Posts: 5064
Joined: Tue Oct 28, 2008 1:46 pm
Location: Sweden, Örebro, Chewbaccastan



Image

Re: Guestbook in PHP or just ASP

Postby Dym on Mon Dec 27, 2010 1:02 pm

Nice guestbook.

You have static html page (http://www.lindesbergskateboard.se/Kontaktaoss.html) and You want to put in there dynamic content - messages from the Guestbook ?

First, create php page only for viewing the messages, then use iframe or AJAX to include it in the html.


User avatar
Dym
UKCS Sponsor
 
Player: Dym
STEAM_0:0:3468041
 
Posts: 207
Joined: Wed Mar 29, 2006 2:46 am



Image

Re: Guestbook in PHP or just ASP

Postby n0rd on Wed Dec 29, 2010 10:06 pm

Dym wrote:Nice guestbook.

You have static html page (http://www.lindesbergskateboard.se/Kontaktaoss.html) and You want to put in there dynamic content - messages from the Guestbook ?

First, create php page only for viewing the messages, then use iframe or AJAX to include it in the html.

yes that is exactly what I want to do, now I just need to study iframe or AJAX ^^ Thanks!
Image
Feel free to ask questions - n0rd|UKCS| Image / Image
User avatar
n0rd
UKCS Sponsor
 
Player: n0rd
STEAM_0:0:12198010
 
Posts: 5064
Joined: Tue Oct 28, 2008 1:46 pm
Location: Sweden, Örebro, Chewbaccastan



Image


Return to I need help with...

Who is online

Users browsing this forum: Bing [Bot], CommonCrawl [Bot] and 0 guests