Message verification on a guestbook

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Message verification on a guestbook

Post by akimm »

I'm wondering if its possible to verify or approve a persons guest book post before its viewable on the page? Basically so my guestbook doesn't get spammed. I am writing this in PHP, i will be using FLATFILE DB's until i can get a mySQL DB to use.

Any help is appreciated. Thanks all!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes, it's possible.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

Would this be the best way to write it?

Have all the info written to one file, then have that file rendor on a seperate page via include for instance, then have an if else statement saying whether I approve or not, if I approve have them then written to the guestbook.txt where it can be later invoked to be viewable to the public?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's certainly a way, but I can't say whether it's the best way or not.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

Well, with my limited resources, and my novice coding skill, which is probably most obvious to you. Would you consider this option a 'good-enough' solution, or is there something I perhaps haven't considered that would be more functional.

By the way, I'd like to create a control panel.

The reason I'm doing this in the first place is because, when I built my website, akimm.com, I had little to no programming experience period. I put up a basic framework, one of the first applications I added was a recently downloaded guestbook. Written in CGI, but now its having some errors, and I have the ability(I think, I hope) to write this now, and feel I need a new project.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I cannot say whether it is within reach of your skill range as I just don't know what your particular pieces are in enough detail. All I can assume is you'll be posting several threads throughout the development of this asking various questions. So no matter what, it's a learning experience. And obvious or not, that's what we want people to do here, so by all means, go right ahead and build it as you've specified.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Ok

Post by akimm »

Thanks for the direction.
Post Reply