Print Page | Close Window

Require Real Name to be Entered

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15211
Printed Date: 13 April 2026 at 6:52am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Require Real Name to be Entered
Posted By: crhoa
Subject: Require Real Name to be Entered
Date Posted: 24 May 2005 at 4:58pm
First WWF looks great!
 
I'm trying to enforce that a real name is entered when registering.
 
In the language_file_inc.asp I have added:
 
   Const strTxtErrorRealName = "Real Name \t- You must enter your name to register"
 
And in the Java Script in register.asp (above Check for security code) I have entered.
 
   'If this is new reg then make sure the user enters there name
   If strMode ="new" Then
    %>
    //Check for a name
           if (document.frmRegister.realName.value <=10){
                   errorMsg += "\n\t<% = strTxtErrorRealName %>";
           }<%
   End If
 
However, when I publish the register.asp and try to register I get a blank page.
 
Is there something I have not done?
 
Thanks



Replies:
Posted By: crhoa
Date Posted: 24 May 2005 at 7:53pm
OK realized what I did wrong......corrected code is
 
<%
'If this is new reg then make sure the user eneters a real name
If strMode ="new" Then
 %>
        //Check for a real name
        if (document.frmRegister.realName.value == ""){
                &nbs p;     errorMsg += "\n\tYou must enter your real name.";
        }
<%    
End If
 %>


Posted By: crhoa
Date Posted: 24 May 2005 at 8:29pm
Found the error of my ways.
 
Correct code is:
 

<%

'If this is new reg then make sure the user eneters a real name

If strMode ="new" Then

%>

//Check for a real name

if (document.frmRegister.realName.value == ""){

errorMsg += "\n\tYou must enter your name";

}

<%

End If

%>



Posted By: kbannon
Date Posted: 25 May 2005 at 6:47am
Just for reference, you can't force an open forum membership to submit their real name - you can just force them to enter something which, for example, could be 'get lost!'

-------------
I don't suffer from insanity, I enjoy every minute of it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net