SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Passing a visitors name from page to page

  1. #1
    SitePoint Member
    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Passing a visitors name from page to page

    How do you pass the name of a visitor to your website from one page to the next so that each page visited will contain a welcome msg with their name at the top of the page?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This is usually done with what's called a session. Exactly how you do that depends on what server-side programming language you choose. If you make a post in the language forum of your choice someone will likely help you do this.
    17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
    Conversion tracking, click fraud detection, A/B testing and more.

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The simplest way is to use Session variables with PHP. You'll be amazed at how easily it is to implement. All you need to do is to start a session with a function at the top of every page, then just reference to the variables as $_SESSION['VariableName']. You might want to google PHP Session Tutorial. Cheers.
    Daryl, Web Developer
    W3-Edge - Boston Website Design

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
  •