Make ALL messeges private!

Everything related to GBook PHP guestbook
Post Reply
Stevie5
Posts: 2
Joined: Fri May 19, 2006 2:20 am

Make ALL messeges private!

Post by Stevie5 »

Script URL: http://www.scottishbands.co.uk/php/gbook/gbook.php
Version of script: 1.4
Version of PHP: 4 i think
Hosting company:
Have you searched THIS FORUM for your problem: Yes And a google Site search
(if not please do before posting)
If so, what terms did you try: Private, Checkbox, "All Private"

Write your message below:

I love your work - amazing!

Is there any way i can make the checkbox the value i need to make ALL the messages from a particular g book private??

Many thanks in advance

Stevie (just learning) (glasgow)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Quite simple, in gbook.php find the HTML code for private message checkbox and just change it to a hidden field with value="Y"
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Stevie5
Posts: 2
Joined: Fri May 19, 2006 2:20 am

Thank you!

Post by Stevie5 »

Many thanks for that!

I was a bit confused by the default value in the script being "Y".

I thought about hidden values but wasnt sure why when the value was Y and the box didnt appear ticked when the page was viewed!

Thanks again for your help - your answer was perfect and has helped me greatly - keep up the good work!


I'll keep you posted on my progress..

Stevie
Post Reply