Topic awaiting preservation: I know it's something really simple (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: sarasofta |
posted 09-25-2003 09:24
I am trying to make a login box where my customers can put their username, password, and domain name into some input boxes and once they click it they will be redirected into the control panel. heres the code I've been working on for the past I dont know how long... |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-25-2003 10:43
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: France |
posted 09-25-2003 12:32
InI: Not to mention that document.writeln( "blah blah" ) actually inserts a new line feed after blah blah which ruins the tag savagegerbil is writting. code: <input type="button" onclick="answerToClickie( this.form )"> You should add some code to check the form fields are not empty or respect some rules ( i.e. 6 characters minimum for the password, etc ... ) |
Obsessive-Compulsive (I) Inmate From: sarasofta |
posted 09-26-2003 10:33
ok, ive cleaned it up and did everything suggested but it just redirects it to the same page. and when I leave an input blank, the alert doesnt pop up. |
Paranoid (IV) Inmate From: France |
posted 09-26-2003 11:30
savagegerbil: You did another ( see your first post ) typo code: if ( username!="" && password!="" && server!="" ) Now, for the redirection that goes to the same page, we forgot to mention that you must cancel the normal behavior of the button, for this you have to add ;return false right after calling the Login() function. |