I had remembered reading and working with other programs that worked with clues, so I thought that might be a good idea to implement this in the program. The first part to look at is the link underneath the Login and Password section on the right - the New Users Signup...you can post all the variables you have seen in the database we have just constructed. Of course, there is a simple html or cfm form that we start with...
<html>
<head>
<title>Registration Page</title>
<SCRIPT>
<!--
function testbox(form) {
Ctrl = form.email;
if (Ctrl.value == "" || Ctrl.value.indexOf('@',0) == -1){
return(false);
} else
return(true);
}
//-->
</SCRIPT>
</HEAD>
<body bgcolor="#FFFFFF">
<font color="#000000">
<a href="index2.cfm"><font size=4><p align="left">Back
to Home Page</a></font></p>
<h1 align="center">Registration Page</h1>
<br><font size=+1>
<b>Sign up for your password with Dautolink.com...<br>
You will be emailed your username and password when it is added to our
database.<br>
To unsubscribe, email <a href="mailto:[email protected]">[email protected]</a>
and put unsubscribe in the subject line.<br>
Register with Dautolink.com!!<br>
<br><br><br>
<hr>
<CFFORM NAME="pass" METHOD="POST" ACTION="passwdb.cfm">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0"
width="90%" bgcolor="#990000">
<tr>
<td width="45%"><b><font color="white">LAST
NAME:</font></b></td>
<td width="45%">
<p><cfinput type="text" name="LastName" size="20"
required="yes" message="Fill in Last Name."></td>
</tr>
<TR><TD>
</TD></TR>
</b>
<tr>
<td width="45%"><b><font color="white">FIRST
NAME:</font></b></td>
<td width="45%"><cfinput type="text" name="FirstName"
size="20" required="yes" message="Enter First Name."></td>
</tr>
<TR><TD>
</TD></TR>
<tr>
<td width="45%"><b><font color="white">EMAIL:</font></b></td>
<td width="45%">
<cfinput type=text name=email required="yes" onvalidate="testbox"
MESSAGE="Invalid Email Entry." size=20 MAXLENGTH=30>
</td>
</tr>
<TR><TD>
</TD>
</TR>
<tr><td width="50%"><b><FONT SIZE="3"
color="white">Choose which question you want in choosing a clue:</b></FONT></td>
<td width="50%"><select name="Clue">
<option value="What is your favorite color?">What is your favorite
color?</OPTION>
<option value="What is the name of your favorite pet?">What is
the name of your favorite pet?</OPTION>
<option value="Last 5 digits of your Social Security No.?">What
are the last five digits of your Social Security Number?</OPTION>
</select>
</td>
</tr>
<TR><TD>
</TD></TR>
<tr>
<td width="45%"><b><font color="white">CLUE
ANSWER:</white></b></td>
<td width="45%"><cfinput type="text" name="Clue2"
size="20" maxlength="20" required="yes" message="Please
select your Clue questions and type your answer."></td>
</tr>
<TR><TD>
</TD></TR>
<tr>
<td width="45%"><b><font color="white">USERNAME:</b></td></font>
<td width="45%"><cfinput type="text" name="UserName"
size="10" maxlength="10" required="yes" message="Enter
User Name."></td>
</tr>
<tr>
<td width="90%" colspan="2"><font color="white">(up
to ten characters)</font></td>
</tr>
</b>
<TR><TD>
</TD></TR>
<tr>
<td width="45%"><b><font color="white">PASSWORD:</b></td></font>
<td width="45%"><cfinput type="text" name="Password"
size="10" maxlength="10" required="yes" message="Enter
your Password for the first time."></td>
</tr>
<tr>
<td width="90%" colspan="2"><font color="white">(up
to ten characters)</font></td>
</tr>
<TR><TD>
</TD></TR>
<tr>
<td width="45%"><b><font color="white">RETYPE
YOUR PASSWORD:</b></font></td>
<td width="45%"><cfinput type="password" name="Password2"
size="10" maxlength="10" required="yes" message="You
must re-enter your Password."></td>
</tr>
<tr>
<td width="90%" colspan="2"><font color="white">(up
to ten characters)</font></td>
</tr>
</b>
</font>
</table>
</center>
</div>
<p align="center">
<input type="submit" value="Submit"><input type="reset"
value="Reset">
</CFFORM>
</body>
</html>
You have your choice of Clue questions, and actually when you go back and try
and find your username and password that
you have forgotten, you have unlimited chances of picking the right clue (but
not the clue answer -- that is specific.) The password
boxes are the usual enter and re-enter modes, the first password entry is text,
the second in password mode. (The second password
is Password2 in the Access database).
Submit. You not only see your posting, but receive an email at the email address
you have entered. Here is the code that
does the work in resulting page, passwdb.cfm.
<html>
<head>
<title>
Password/Registration Request</title>
</head>
<CFINSERT DATASOURCE="upload" TABLENAME="passwd">
<body bgcolor="#FFFFFF">
<a href="index2.cfm"><FONT SIZE="5">BACK TO HOME
PAGE</A></FONT><BR><BR>
<CENTER>
<H2>REGISTRATION RESULTS PAGE</H2><BR><BR>
</CENTER>
<b><font size=5>This is your Registration/Password Information.<br>
Keep it in a safe place. An email will be coming to your address shortly.<br></b></font>
<br><br>
<CFOUTPUT>
<center>
<table border="0" cellpadding="0" cellspacing="0"
width="90%">
<tr>
<td width="45%"><b>YOUR NAME:</b></td>
<td width="45%">#LastName# #FirstName#
<p></td>
</tr>
<tr>
<td width="45%"><b>YOUR EMAIL:</b></td>
<td width="45%">#email#
<p></td>
</tr>
<tr>
<td width="45%"><b>CLUE QUESTION:</b></td>
<td width="45%">#Clue#
<p></td>
</tr>
<tr>
<td width="45%"><b>CLUE ANSWER:</b></td>
<td width="45%">#Clue2#
<p></td>
</tr>
<tr>
<td width="45%"><b>USER NAME:</b></td>
<td width="45%">#UserName#
<p></td>
</tr>
<tr>
<td width="45%"><b>PASSWORD:</b></td>
<td width="45%">#Password#
<p></td>
</tr>
</table>
</center>
</div>
</CFOUTPUT>
<hr><br><br>
If you wish to unsubcribe, please access <a href="[email protected]">[email protected]</a><br>
and type
unsubscribe and your last name in the subject line, and send.
</b></font>
<CFMAIL TO= #Form.email#
CC="[email protected]"
FROM= "[email protected]"
SUBJECT= "Valid Registration and Password"
SERVER="mail.dautolink.com">
This is your valid username and password.
Thank you for choosing Dautolink.com. We will be in touch with you soon!
Your Name: #Form.LastName# #Form.FirstName#
Your Email: #Form.email#
Clue Question: #Form.Clue#
Answer to Clue: #Form.Clue2#
User Name: #Form.UserName#
Password: #Form.Password#
If you wish to unsubcribe, please access [email protected] and type
unsubscribe and your name in the subject line, and send.
</CFMAIL>
</body>
</html>
Comments