Results 1 to 3 of 3

Thread: Welcome Message

  1. #1
    Join Date
    Jun 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Welcome Message

    Hi,

    I'm looking for an html script that will let me have a personalized greeting when they log on to my website. In order to get to the site, they have already logged on with their user name. So for example, "Welcome username!"

    Any help would greatly be appreciated!

    Thanks!


  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Depends where the login info is stored. Oh, and it's not possible in HTML, you need some form of server-side script.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    As Twey says, it all depends on how that username is stored.

    Assume that *user* represents the username, whether output by php or something else. So...

    <body onLoad="alert('Welcome, *user*');">

    And of course you could just put a text message on the page. That will generate an alert popup, using javascript.

    Totally up to you, but that is one suggestion.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •