is it possible to change behavior after submit?

Everything related to GBook PHP guestbook
Post Reply
Gayle
Posts: 2
Joined: Sun Nov 01, 2009 6:17 pm

is it possible to change behavior after submit?

Post by Gayle »

/*************************************
Title: GBook
Version: 1.7
Author:
Demo:
Download:
Website:

Short description: After a user submits a comment, I would like to display a different (static) html page, instead of displaying the notice and the list of comments. Can you point me to the code I would need to modify to do this?

Thank you,

Gayle


*************************************/

(Here below you can write additional info, longer description and comments)
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Gayle,

In gbook.php (version 1.70) find line 1008

Code: Select all

} // END addEntry
Just before this code at the following:

Code: Select all

header("Location: http://www.mysite.com/mypage.html"); 
exit();
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.
Gayle
Posts: 2
Joined: Sun Nov 01, 2009 6:17 pm

Solved: is it possible to change behavior after submit

Post by Gayle »

Thanks, Henrie - that's exactly what I needed to know,

Gayle
Post Reply