Preserved Topic: Need help (remember...I know nuting...nuting) - Javascript |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: :morF |
posted 08-03-2000 15:24
I really do need help with a Javascript thing though. I actually want help on ALL of this. I have ot write a piece of Javascript code that, when a submit button on a form is clicked, it takes the value of a text field, compares it to a word already contained in javascript as a variable, and if it is right, redirects to one page, and if it is wrong, redirects to another page, and then sends me an email containing the ip address of the user who entered the wrong word, the time and date, and the word they entered. Please, keep it simple, and explain everything. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-03-2000 19:07
Hmm.. Here is the thing. You can do parts of this with JS (the check and the redirect if the answer is correct) but you are going to need a CGI to send the mail and redirect. I think your best bet is simply doing this all via cgi. Especially if this is some sort of password or something which requires some sort of security. |
Maniac (V) Mad Scientist From: :morF |
posted 08-04-2000 04:02
Stuff the email then...this is just for a project for school. I do need to know how to check the password through a form though and redirect to a different page according to if it's right or wrong. |
Bipolar (III) Inmate From: Dublin, Ireland |
posted 08-04-2000 15:40
Actually, you can also do the redirect through javascript i.e. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-04-2000 22:04
Ok Skarjj, here ya go. Again remember this isn't the most secure script (anyone can view the HTML and see the password) but here you go: |
Maniac (V) Mad Scientist From: :morF |
posted 08-05-2000 01:27
Bitdamaged...thankyouthankyouthankyouthankyou |
Maniac (V) Mad Scientist From: :morF |
posted 08-08-2000 01:46
Does anyone know a way that I can encrypt the password using JavaScript? It probably can't be done, and I wouldn't remember the script if it could, but please, if it can be done, plase tell me. |