GBook wont accept first name

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
lisavollmer
Posts: 9
Joined: Mon Aug 22, 2011 4:32 pm

GBook wont accept first name

Post by lisavollmer »

Script URL: www.lisaseggart.com
Version of script: 1.7
Hosting company: ipage
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Henrie... if you are out there...

Ok, we have the yellow text on the gbook form... but now it is not allowing guest to sign the book. It will not accept any first name you enter. and gives you a huge red error message to "fill in first name"
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: GBook wont accept first name

Post by Henrie »

Hello Lisa,

There is not a solution that comes immediately to my mind. But obviously it has worked before because there is already an enty in your guestbook.

Did you edit any of the .php files? If you did, please try uploading a not edited version of that file and see if it works than.

If that is not the case, could you put the files inside your GBook folder into a zip file and make it available for download to me? Than I will take a look if i can reproduce your problems and try to fix it.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: GBook wont accept first name

Post by Klemen »

The problem is most likely in your "templates/default/sign_form.php" file - there's a semi-colon ";" at front of the "name" field name in the source code.

Try uploading the original sign_form.php file or at least check inside if there is a ";" just before

Code: Select all

<?php echo $myfield['name']; ?>
and delete it.

P.s.: you should add a default font size for "p" in your style to avoid the huge powered by links.
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
lisavollmer
Posts: 9
Joined: Mon Aug 22, 2011 4:32 pm

Re: GBook wont accept first name

Post by lisavollmer »

Klemen,

I have no idea how to do P.s.: you should add a default font size for "p" in your style to avoid the huge powered by links.

Any help would be appreciated
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: GBook wont accept first name

Post by Henrie »

Hello Lisa,

I see that you have fixed the problem of not being able to post messages. That is great :D
Klemen wrote:P.s.: you should add a default font size for "p" in your style to avoid the huge powered by links.
Klemen is wrong in assuming that adding a default size for "p" will fix the big texts. Because all the text that are displayed very big are not inside a paragraph element.
It is very weird why you have such big texts, because not any of the used stylesheets set such a big size.

The easiest way to fix this problem is to do the following.

Open the file header.txt inside the "gbook/" folder and add the following code:

Code: Select all

<div id="gbook">
than save and close it.

Open the file footer.txt inside the "gbook/" folder and add the following code:

Code: Select all

</div> <!-- end of div id="gbook" -->
than save and close it.

Open the file style.css inside the "gbook/templates/default/" folder and add the following code:

Code: Select all

#gbook {font-size: 12px;}
than save and close it.

This should take care of your text size problems.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
lisavollmer
Posts: 9
Joined: Mon Aug 22, 2011 4:32 pm

Re: GBook wont accept first name

Post by lisavollmer »

Thanks Henrie!! Again, you are awsome!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: GBook wont accept first name

Post by Henrie »

:D
Thank you.

Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply