Go Back   Free website templates > Web Template Help > JavaScript
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2009, 12:47 PM
Junior Member
 
Join Date: Jun 2009
Posts: 25
gilbertsavier is on a distinguished road
Default Regular Expression Validation

Hi Everyone,

I got a problem with the Regular Expression Validation of custom fields. I have set the following regular expression in a custom text input field:

^[A-Za-z0-9._\-]+@{1,1}[A-Za-z0-9._\-]+\.[A-Za-z]{2,3}$

When I submit a ticket and fill in 'test@test.com' in this custom field I get the following error for the field:

'One of the required field(s) is empty'

I tested the same expression in a simple php script with the ereg function and it works without a problem. Anyone knows what the problem is?

Thanks & regards
Lokananth
Reply With Quote
Reply

Thread Tools
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



All times are GMT. The time now is 07:31 PM.



mouseover mouseover mouseover