Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works on my personal server. And not when I go online using Firefox.
Can anyone tell me why?

<?php echo(ucwords($_SESSION[fullname])); ?>

Recommended Answers

Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works on my personal server. And not when I go online using Firefox.
Can anyone tell me why?


       
Jump to Post

All 2 Replies

Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works on my personal server. And not when I go online using Firefox.
Can anyone tell me why?

<?php echo(ucwords($_SESSION[fullname])); ?>

Try without ucwords() function ...!

<?php
session_start();
echo(ucwords($_SESSION[fullname])); 
?>

Before assigning session variables first start the session using session_start() in every page

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.