PDA

View Full Version : login


D-Mar
09-21-2005, 03:47 PM
Hello everyone,

I've got a question:

I'm making a little project-page in which i also put a login from another site. (kind of like a gmail/hotmail login)
On this site you haven to put "@example.com" behind your username. I would like it if the @example.com would automatically be added to the username; so I only have to type my username and not the @..
Login is made with javascript.. what more info do you need?

Thanks for all the help you can give me

Sincerely,

D-Mar


so far i already got this answer:

You should use your javascript login in conjunction with some sort of server-side script, otherwise anyone can just view the source code and get the correct username and password.

But this is not what i meant. What I mean has nothing to do with the login itself. The login is not on my site. I just want to automatically put the @example.com behind whatever i type.

for example:

my username is 123456ab
and to login i need to type 123456ab@example.com

I want to type 123456ab, and when i continue to type my password, @example.com gets put behind the 123456ab

I know it's possible, a while ago hotmail.com had it when you logged in, I typed my username and the in the field automatically "@hotmail.com" was added


Thanks for any help!!
D-Mar

RetroGamer1991
09-21-2005, 09:44 PM
have it add "@example.com" to end of the login string when they click submit

function addemail()
{
document.formName.loginVariableName.value += "@example.com";
}

.
.
.
<form method="post" action="wherevertogo.cgi" name="loginform" onsubmit="return addemail()">