Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Registration Required Fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

iainspeed
Starting Member

17 Posts

Posted - 23 September 2004 :  07:54:23  Show Profile
Hello Shnittzels,

I added this code to register.asp

if trim(Request.Form("Occupation")) = "" then
Err_Msg = Err_Msg & "<li>You must enter your Job Title</li>"
end if


But it's not recognising when there is something written in the field, it always throws up "You must enter your Job Title". It worked for all the other fields I used it for.

Can anyone help?

Iain

-gary
Development Team Member

406 Posts

Posted - 23 September 2004 :  11:35:33  Show Profile
Do a
Response.Write "!" & trim(Request.Form("Occupation")) & "!"
or
Response.Write "!" & len(trim(Request.Form("Occupation"))) & "!"
before the function to make sure there is actually data in the field. The function may be working just fine, since it looks fine. Use the exclamation marks in case it is empty and you'll be able to see !! if it turns out to be null or blank.

KawiForums.com


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07