Need Some Expert Help To Modify A PHP 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
VanceVP
Forum Newbie
Posts: 3
Joined: Mon Dec 08, 2008 8:48 pm

Need Some Expert Help To Modify A PHP Guestbook

Post by VanceVP »

I know absolutely nothing about PHP - yet. But I am starting to learn.

I have need for a feedback type of form for my site. I want to use it as a means for members to submit restaurant reviews. Once I get this, I want to have another one for night spot reviews. I do not have the ability to build these from scratch, so I am trying to modify a PHP guestbook to do what I need.

Anyway, I looked for a script that would have a page for someone to enter their member name, the date, the restaurant's name and a place for the review. Seems pretty basic and simple to me but it is beyond my capabilities at this point. I would like to have the results/reviews posted to a seperate page

I found a guestbook script that pretty much does what I am trying to do. The only problem is that where I have changed it to restaurant name, the script requires an email address. I don't want the email, but instead I want the restaurant name. I don't know how to change this and would really appreciate any help to modify this script.

You can hopefully see what I'm talking about HERE. I fyou look at the top test review, I want to change the "Contact" next to restaurant to where it will show the restaurant's name.

Anyone interested in helping me to understand how to modify this? I'm desperate.

Thanks,
VanceVP
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Need Some Expert Help To Modify A PHP Guestbook

Post by mikemike »

Your best bet is to try and look at the code and understand where the part your trying to modify is. Do some tutorials if you can't understand it, I normally recommend the php.net tutorial here but any tutorial from googling 'basic php tutorial' is a good place to start.

If you're still having trouble after that then try posting again - I'm not sure you'll have much help otherwise, and I'm pretty certain noone will just write the script for you.
User avatar
Raph
Forum Commoner
Posts: 43
Joined: Wed May 27, 2009 6:33 pm

Re: Need Some Expert Help To Modify A PHP Guestbook

Post by Raph »

Like mikemike above recommended, find the place in the script where the input and output of the email is handled. When you do, if the email is run through a function to verify that it's an actual email, you should remove/edit that part. It might also be a good idea to find where the form is handled, so people know it's not their email you want in the box.
Post Reply