If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > validation problem in asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-08, 23:18
aa_86 aa_86 is offline
Registered User
 
Join Date: Feb 2008
Posts: 49
validation problem in asp

hi, i am trying to enter data into an acess db via an sql website form. the databse feilds have validation. when a coorect value is entered in access it accept it, but when the same value is entered through the website it returns an error.

the validation is for email address

Is Null Or ((Like "*?@?*.?*") And (Not Like "*[ ,;]*"))

any ideas why access accept the value tony.smith@hotmail.com and asp does not?

thanks
Reply With Quote
  #2 (permalink)  
Old 04-11-08, 03:27
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Well then; first off what are the question marks?

Secondly, you have the @ symbol before your full stop, so tony DOT smith AT is incorrect.

With regards to email validation; you're far better of using regular expressions. Yes, they are more complicated to understand, but Google and RegExLib will give you everything you need fairly easily
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On