/    Sign up×
Community /Pin to ProfileBookmark

creating a login screen

Currently our clients access their reports via a link to a protected folder – each client has their own folder with 1 or more user logins.

I would like to add a login page to our server where the user would enter their account# and they would be redirected to mycompany.com/acct# which would then require authentication. I thought that I could use forms & get to redirect but it seems the encoding is getting in the way – cgi is not an option at this point – if anyone has any idea of how to do this using html +/or javascript it would be greatly appreciated.

Thanks in advance,
Cyber-guys

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@minondAug 30.2009 — Its all about the dom javascript; just have a function that takes the imput of the text field and then add it the the url, ex:

<script type="text/javascript">

function login() {

var num=document.getElementById("acctnum").value; //text field

window.location.assign("mycompany.com/"+num);

}

</script>


just have the login button call this function and it should do what you are looking for if i correctly understand what you need.
×

Success!

Help @cyber-guys 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.18,
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,
)...