Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I access a memberid keyed on a different page?

Status
Not open for further replies.

rick1111

Programmer
Nov 25, 2001
16
US
We are setting up a site for an affiliate company which requires a userid and password for members on a login page and on subsequent pages we need to append the memberid to any hyperlink the user clicks. We are planning to use JS to do the append but haven't yet been able to access the memberid. Our server is not ASP capable so that is not an option.

We appreciate any assistance you can give.

Thanks,

Rick
 
Somehow you would need to access the memberid and store it in a variable somewhere in the main script and then just build a function that will append that memberid to the url, with having been passed the url and the memberid. Just a thought on how it could be possible.

JavaDude32
 
Thanks JavaDude32, but I've got the somehow concepts. What I need is someone who can give me a little more specific how-to remedy.

Rick
 
You could store the memberid in a cookie, and access the value of that cookie on each page.

For an easy-to-use javascript cookiejar object, check out for TDCookieJar. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top