Page 1 of 1

fill out form using session variables to add message page

Posted: Mon Aug 25, 2008 10:23 pm
by AdRock
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I have upgraded to 1.6 and it is great becuase it validates xhtml which is what i wanted to do.

When the user wants to sign the guestbook and they have to enter their name and email address, where in the code can i add the values for what is stored in the session if they are logged in?

Posted: Wed Aug 27, 2008 5:49 pm
by Klemen
In the HTML code located in the printSign function (starts on line 818). For example instead of

Code: Select all

value="<?php echo $name; ?>"
you would use something like

Code: Select all

value="<?php echo $_SESSION['your_variable']; ?>"