CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Alphanumeric and Numeric field validation

Print topic Send  topic

Author Message
samelk

Posts: 35
Posted: 04/09/2008, 2:06 PM

Hello,

I noticed that CCS4 comes with a built in zipcode and email validation. What is the best way to add alphanumeric (0-9, a-z, A-Z) and numeric (0-9) validations to fields on my form?

Thank you in advance,
Sam
View profile  Send private message
CCT


Posts: 44
Posted: 04/10/2008, 11:23 AM

Hello.

As you see, when you choose "Email/Zip" presets in "Input Validations" it's replaced with some regular expression. You can write any Regular Expression here.

In your case:
  
^[a-zA-Z0-9]+$ (or ^\w+$, but this will also include underscore)  
^\d+$  

Best regards,
Frank.
_________________
Get more CodeCharge Studio builders at http://codechargetools.com
View profile  Send private message
samelk

Posts: 35
Posted: 04/10/2008, 7:28 PM

Frank,

Works great. I really appreciate your help.

Sam
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.