fill out form using session variables to add message page

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
AdRock
Posts: 19
Joined: Sun Aug 20, 2006 11:50 pm

fill out form using session variables to add message page

Post 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?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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']; ?>"
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
Post Reply