/    Sign up×
Community /Pin to ProfileBookmark

Using %username% in a hyperlink.

I wanted to create a hyperlink that users can click on to open their folder on the network via ftp.

If I type ” [url]ftp://files.server.non/user/%username%/My Documents[/url] ” into a browser, it converts it to ” [url]ftp://files.server.non/myname/My%20Documents[/url] “, prompts me for my username and password, then opens my My Document folder.

If I put the same line in a hyperlink, however, it returns ” [url]ftp://files.server.non/%25username%25/My%20Documents[/url] “, replacing the % with it’s code %25.

Is there anyway to code this to work, or another alternative I could use?

Thanks!

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@PhillMcAug 20.2004 — This will have to be done with Server Side Scripting, a list of users, and some hand coded methods in the language of your choosing. Head to the .NET or the PHP forum. They'll hook you up. ?
×

Success!

Help @mgable spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...