This is a discussion on "Echo and Sessions" within the PHP Forum section. This forum, and the thread "Echo and Sessions are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Echo and Sessions
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi I have a code of sessions I want to write "Welcome .$_SESSION['user_name']." to the site "after the user login. but I need the user name and the welcome message to be bold and have a color too, I don't know how to do that in php .. because the code is on the left top corner it is a session. ((it is not in the HTML tags))
I know this only
Thanks |
|
|
|
|||
|
Re: Echo and Sessions
I don't know how to add html to a php code, should i use "Print" command and then <font color='red'> for example.. before the message?
|
|
|||
|
Re: Echo and Sessions
No, say example on your second echo you wanted it to be red you would write it as this.
|
|
||||
|
Re: Echo and Sessions
Yeesh ... <font> element is deprecated!
You can just do
|
|
|||
|
Re: Echo and Sessions
or you acn echo html tags themselves
eg ;
ps; please keep your php commands in the corect case... echo should be in lower case not capitals Last edited by Accurax; Jun 1st, 2007 at 00:21. |
![]() |
| Tags |
| echo, question, sessions, simple |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| echo proxy to csv | stiassny | JavaScript Forum | 1 | Apr 13th, 2008 16:51 |
| How do I echo <?php ..... | AdRock | PHP Forum | 12 | Sep 14th, 2007 13:20 |
| Echo and If | simonb | PHP Forum | 2 | Aug 27th, 2007 16:22 |
| how to echo 2 classes | geyids | PHP Forum | 3 | Aug 9th, 2007 13:47 |
| Echo vs Print | Sqrlgrl | PHP Forum | 3 | May 30th, 2005 22:31 |