Promark
Starting Member
USA
2 Posts |
Posted - 19 March 2002 : 14:41:56
|
All you need to do is insert this little bit of code into the register.asp file. I am using a modified 3.1.4 so my file is not the same as yours, but it should accomplish the same goal. I placed it just after the check for '<' or '>' in the User Name (line 95 for me).
if (Instr(Request.Form("Name"), "ab") = 0 ) then Err_Msg = Err_Msg & "<li> You must include ab in your name</li>" end if
You can put whatever you want in the error message. Be aware though that this will only check to see if "ab" is ANYWHERE in the name, so both 'abPromark', and 'rabbit' would work. If you want to add other requirements you can add it like this:
if (Instr(Request.Form("Name"), "ab") = 0 ) and (Instr(Request.Form("Name"), "AB") = 0) then Err_Msg = Err_Msg & "<li> You must include ab in your name</li>" end if
Edited by - Promark on 19 March 2002 14:43:39 |
 |
|