logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-15-2007, 04:51 PM   #11
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

sorry i misread your post

here you go
PHP Code:
 
<?php 
 
if($slogin_Username){
 
echo 
"Welcome $slogin_Username";
 
}else{
 
echo 
"Welcome Guest";
 
}
 
?>
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 01-15-2007, 05:42 PM   #12
mcambridge
 
Join Date: Dec 2005
Posts: 20
Default

It doesnt seem to work, all it does is displays 'welcome guest' then the login name aswell. i.e. 'welcome guest mark'

I would like 'Welcome Guest' to be displayed when the user hasnt logged in, and then, if 'Mark' logs in, it would say 'Welcome Mark'

any help greatly appreciated!
mcambridge is offline   Reply With Quote
Old 01-15-2007, 05:43 PM   #13
mcambridge
 
Join Date: Dec 2005
Posts: 20
Default

ah, no worries, didnt see ur reply! oops, appologies, will try now!
mcambridge is offline   Reply With Quote
Old 01-15-2007, 05:59 PM   #14
mcambridge
 
Join Date: Dec 2005
Posts: 20
Default

yep, all works a treat, with a little tweaking, the only words that change are 'guest' and the 'username'.....

brilliant thanx for that....if you would like to have a look....www.spiral-focus.com

username = Mark
password = spiral

its just a tester one.

once again, many thanx for ur help!
mcambridge is offline   Reply With Quote
Old 01-15-2007, 06:12 PM   #15
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

the logout failed for me!

redirect to a blank page
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.