This has to be something you got from another site. It's the usual ASP dog's breakfast that most people create.
Anyway, I can help you with part of this, but you're going to have to do some digging to find the other parts
Change this part:
Code:
<td width="150">Username:</td>
<td><input style="width: 100%;" type="Text" name="username" value="" size="40" maxlength="25" class="textbox" /></td>
To...
Code:
<td width="150">Confirm Email:</td>
<td><input style="width: 100%;" type="Text" name="Email_Confirm" value="" size="40" maxlength="75" class="textbox" /></td>
I bolded the parts I changed. The maxlength property has to be changed to accommodate a proper email address.
As far as how to validate it, you'd have to change the line I bolded below:
Code:
With Request
sNAME = APO(.Form("name"))
sEMAILCONFIRM = APO(.Form("Email_Confirm"))
Then you'd have to add some form of validation somewhere before the database insert queries. I suspect that it's something in the CHECK_INP() sub, but I don't know where it would be exactly since that sub isn't in your code (it's probably in one of the include files).
You'll also need to alter anywhere that the user logs in to incorporate checking for email instead of username.
But...all of this leads to a much deeper issue. The type of question that you're asking is one that involves multiple parts, and you hadn't even gotten as far as the first one. That usually implies that you've bitten off a lot more than you can chew. The fact that you're using a script that someone else supplied also implies that.
Whatever it is you're doing, you may want to scale back your expectations of yourself and the script and go easy on yourself.