View Single Post
Old 12-30-2012, 11:22 AM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
This will work, checked in Firebug showing the text within a <p>.

Code:
echo '<p>Welcome back ' . $_SESSION['username'] . '!</p>';
Or, you can define the <p> to have a class, then just style it in your CSS file:
Code:
echo "<p class='message'>Welcome back ".$user."!</p>";

//then in your CSS file do this:

.message
{
//your styles
}
Regards,

LC.

Last edited by LearningCoder; 12-30-2012 at 11:24 AM..
LearningCoder is offline   Reply With Quote
Users who have thanked LearningCoder for this post:
jhdavey (12-30-2012)