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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embedding password info in a link 1

Status
Not open for further replies.

grebo

Programmer
Sep 21, 1998
38
US
I'm trying to find a way to encode a user ID and password into the &lt;a href=&gt; code. I recall seeing things like this before and the gernal form is along the lines of &lt;a href="URL/?_____"&gt;link&lt;/a&gt; where the underline is the info.<br>
<br>
Can anyone help me out here? I'm searching for the solution now, but am hoping that someone can enlighten me sooner.<br>
<br>
As a side note... Have no fear about security being compromised with this (at least my use) as it will be for a personal page hosted locally on a secure machine. It's just mainly to be lazy and avoid having to type in the ID and password everytime.<br>
<br>
Thanks.<br>
-Eric
 
Well, that IS how it looks in the source.<br>
Are you trying to program it into the page "solid" or do you want it to be "soft" and only be avail after you've logged in?<br>
If you'er wanting it to be "soft" then you'll have to use CGI, or JavaScript. Then JavaScript, however is somewhat complicated and would take a great deal of time & effort to create. Please let me know which you are needing so that I may better help you in this.<br>
<br>
<br>
-Robherc
 
I know with ftp sites you can log on using -<br>
ftp://name:password@ftp.site.com:[port#]<br>
<br>
I am not sure if you can do this with whatever you are trying to do, but this might work &lt;a href="username:password@URL"&gt;Click here&lt;/a&gt; hope this helps?<br>
Let me know one way or the other.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top