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?
| SitePoint Sponsor |
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?


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.
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