Jump to content

odd session issue


wmguk

Recommended Posts

hey,

 

I've found a message book script, and im trying to get it to input the various details...

 

$email and $name are set in sessions but I cannot get it to pull the info out...

 

function printSign($name='',$from='',$email='',$url='',$comments='',$nosmileys='',$isprivate='',$error='') {
global $settings, $myfield, $lang;
$url=$url ? $url : 'http://';
?>

 

I tried

 

function printSign($name='',$from='',$email=' . $_SESSION['email'] . ',$url='',$comments='',$nosmileys='',$isprivate='',$error='') {

 

but I just get Parse error: syntax error, unexpected '.' in /var/www/vhosts/bnidereham.co.uk/httpdocs/forum/gbook.php on line 958

 

 

Link to comment
https://forums.phpfreaks.com/topic/122893-odd-session-issue/
Share on other sites

Hmmm ok, I tried:

 

I did this

function printSign($name='',$from='',$email=' . $_SESSION["email"] . ',$url='',$comments='',$nosmileys='',$isprivate='',$error='') {

 

and the email variable shows . $_SESSION[

 

 

I did this

function printSign($name=',$from='',$email=" . $_SESSION['email] . ",$url='',$comments='',$nosmileys='',$isprivate='',$error='') {

 

and i got this error

Parse error: syntax error, unexpected '"' in /var/www/vhosts/bnidereham.co.uk/httpdocs/forum/gbook.php on line 958

 

Can you point out where I am missing the quotes etc please?

Link to comment
https://forums.phpfreaks.com/topic/122893-odd-session-issue/#findComment-634731
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.