Forums
This topic is locked
password confirm
Posted 08 Dec 2003 20:52:16
1
has voted
08 Dec 2003 20:52:16 Claudio Huyskens posted:
I got no idea how to add password confirmation to an ASP VB page.Replies
Replied 08 Dec 2003 23:17:07
08 Dec 2003 23:17:07 Mark Bieganek replied:
The following URL gives a great tutorial on how to use the User Authentication controls that exist in Dreamweaver MX.
www.webthang.co.uk/tuts/tuts_dmx/dmxf_4/dmx4_2.asp
If you are not using Dreamweaver MX, and are a devout hand coder instead, then the following link should be of help to you, there are a ton of hand-coded applications there for you to use:
www.hotscripts.com/ASP/Scripts_and_Components/User_Authentication/
Hope that helps,
Mark
www.webthang.co.uk/tuts/tuts_dmx/dmxf_4/dmx4_2.asp
If you are not using Dreamweaver MX, and are a devout hand coder instead, then the following link should be of help to you, there are a ton of hand-coded applications there for you to use:
www.hotscripts.com/ASP/Scripts_and_Components/User_Authentication/
Hope that helps,
Mark
Replied 09 Dec 2003 01:09:52
09 Dec 2003 01:09:52 Claudio Huyskens replied:
I don´t have an authetification problem of checking if username exists already, but instead a password confirmation problem. You often see it in registration pages where you are asked to retype your password and both fields are somehow checked. If they do not contain the same value the user is redirected to an error page.
I hope this explained my situation a little better.
Thanks anyway
Claudio
I hope this explained my situation a little better.
Thanks anyway
Claudio
Replied 09 Dec 2003 16:05:38
09 Dec 2003 16:05:38 Vince Baker replied:
This form will do what you want.
Just remove the bits from the page that you need
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="VBScript">
function form1_onSubmit()
if document.form1.txtpassword.value <> "" then
if document.form1.txtpassword.value = document.form1.txtconfirm.value then
form1_onSubmit = true
else
alert("The passwords you entered do not match, please try again"
document.form1.txtpassword.value = ""
document.form1.txtconfirm.value = ""
document.form1.txtpassword.focus
form1_onSubmit = false
end if
else
alert("You must enter a password"
document.form1.txtpassword.value = ""
document.form1.txtconfirm.value = ""
document.form1.txtpassword.focus
form1_onSubmit = false
end if
end function
</script>
</head>
<body>
<form action="" method="get" name="form1" id="form1">
<table width="100%" border="0">
<tr>
<td><div align="right">Password</div></td>
<td><input name="txtpassword" type="password" id="txtpassword"></td>
</tr>
<tr>
<td><div align="right">Confirm Password</div></td>
<td><input name="txtconfirm" type="password" id="txtconfirm"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Continue"></td>
</tr>
</table>
</form>
</body>
</html>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Just remove the bits from the page that you need
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="VBScript">
function form1_onSubmit()
if document.form1.txtpassword.value <> "" then
if document.form1.txtpassword.value = document.form1.txtconfirm.value then
form1_onSubmit = true
else
alert("The passwords you entered do not match, please try again"
document.form1.txtpassword.value = ""
document.form1.txtconfirm.value = ""
document.form1.txtpassword.focus
form1_onSubmit = false
end if
else
alert("You must enter a password"
document.form1.txtpassword.value = ""
document.form1.txtconfirm.value = ""
document.form1.txtpassword.focus
form1_onSubmit = false
end if
end function
</script>
</head>
<body>
<form action="" method="get" name="form1" id="form1">
<table width="100%" border="0">
<tr>
<td><div align="right">Password</div></td>
<td><input name="txtpassword" type="password" id="txtpassword"></td>
</tr>
<tr>
<td><div align="right">Confirm Password</div></td>
<td><input name="txtconfirm" type="password" id="txtconfirm"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Continue"></td>
</tr>
</table>
</form>
</body>
</html>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 10 Dec 2003 01:17:02
10 Dec 2003 01:17:02 Claudio Huyskens replied:
That fits perfectly, thanks alot
Claudio
Claudio