| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Scripting - Server Side (PHP, Perl, etc.) Discuss scripting on the server side. This can incldue PHP, Perl, and any server side scripting issues not covered in other forums. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Display Telephone Number On Referrer
Please help
I have used the php below to show a different telephone number in the header of the site depending upon where the visitor comes from. The code below works but looses the original referrer information upon click of own site links, defaulting the telephone number back to the generic number. Is there away to save it to the session, maybe the start session and save session is not done correct? Thanks for any help PHP Code:
Last edited by PeejAvery; November 5th, 2009 at 12:57 PM. Reason: Added PHP tags. |
|
#2
|
||||
|
||||
|
Re: PHP Display Telephone Number On Referrer
To retain session information, you need to be supplying a unique id to session_id() first, or using session_name() first.
PHP Code:
__________________
If the post was helpful...Rate it! Remember to use [code] or [php] tags. |
|
#3
|
|||
|
|||
|
Re: PHP Display Telephone Number On Referrer
no that did not seem to fix the problem..... maybe i am doing it wrong!
PHP Code:
Last edited by PeejAvery; November 5th, 2009 at 03:42 PM. Reason: Added PHP tags. |
|
#4
|
||||
|
||||
|
Re: PHP Display Telephone Number On Referrer
Please start using [php] tags. Instructions to use them are found in the BB code link at the bottom left of the page.
As for your problem, you aren't being clear. What about that snippet you just posted isn't working? Also, why are you using UTF-8 single quotes? Use basic ' single quotes or double quotes. Change... PHP Code:
PHP Code:
__________________
If the post was helpful...Rate it! Remember to use [code] or [php] tags. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|