What would the regex expression that would go into preg_split function to validate date in the format of
7-Mar-10 or how can I validate a date of format 7-Mar-10 in PHP
Thanks.
Hi guys, I need to create a form that has many of the same fields, that have to be inserted into a database, but the problem I have is that if a user only fills in one or two of the rows, the form will still submit the blank data of the empty fields along with the one or two fields the user has filled in.
How can I check for the rows that have…
Hello,
I have a strange problem.
while MicrosoftMvcValidation works in my mvc project, MicrosoftMvcJQueryValidation doesn't.
this is my code:
<script src="../../Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcValidation.js"…
Hi,
Ia processing an email and saving some header inside a xml document. I also need to validate the document against a xml schema.
As the subject suggest, I need to validate ignoring the elements order but, as far as I read this seems to be impossible. Am I correct?
If I put the headers in…
Hello everybody,
Please help me with a function that validate an input string to allow:
1) UTF-8 characters (ex: staîâ) ; 2) space ; 3) minus symbol(-)
String cannot start or end with space or minus.
Thanks!
I'm writing a login form, and it converts the given password to an MD5 hash with md5($password), then matches it to an already-hashed record in my database. I know for sure that the database record is correct in this case. However, it doesn't log me in and claims the password is incorrect.
…
Dear Rails users!
I have STI models in my Rails application. The ancestor model has validations with the validates_... methods which are working fine.
But I have custom validations as well, and I would like to add more different custom validations in the descendants. These custom…
Hi,
I have to validate the password using regex.
The password rule is like at least 1 uppercase and at least 2 numeric.
It works fine except if the character comes at the end of the string.
The regular expression which i am using is
…
We're trying to get a conditional attribute to work, case in point, there's a boolean (checkbox) that if checked, its related text is required. So, ideally we'd have something like ...
public bool Provision { get; set; }
…
I have a form with several fields with a RequiredFieldValidator on them.
If any of these fields are not filled in I only want the message "Please enter the items marked with an asterisk" to appear once in the…
Hi,
I get the following error when I try to validate a contact page on my site:
document type does not allow element "script" here
The element named above was found in a context where it is not…
Hi all,
I am having a tough time trying to find a solution to the following design related to h:dataTable.
I have certain number of rows predisplayed. The first column is only checkboxes. The rest of…
We are trying to implement jquery ketchup
demos.usejquery.com/ketchup-plugin/
and use required fields for the name, email and phone fields we have included all the markup and I think I have it setup…
Hi, all.
I am using django.forms.Form to validate form data in a survey applications.
In a survey-creating form, a user can submit multiple questions that belong to the survey being created.
Names…
OK here is stripped down version of what I have in my app
Artist domain:
class Artist {
String name
Date lastMined
def artistService
static transients = ['artistService']
…
Hi,
I'm just wondering how can I display both individual error messages and summary for the jquery plugin, I actually found a similar question but it just reference some hooks I can use, but…
I am not able to validate passord with ()-=_+ , i.e it should accept these special characters but its not working when i use the regular expression as
`validates_format_of :password, :with…
Is it possible for one to check the strong name of a .NET application that is already currently running separately from your own running applications process?
I have a table row that has the error message in it.
...
Now if someone forgets to enter text or bad text in a textbox, I want this form field to be set to visible.
Can I use a asp.net…
I have 3 featured product panels on the homepage, and I'm writing a CMS page for it. I'm trying to validate the items.
They are selected via three <select> elements, featured1,…
I am storing phone numbers of varying lengths in my WPF (C#, VS 08) App.
I store them as strings. My question is about my method AddNewPhoneNo(string phoneNo).
In this method, I use…
How to create a new data type for Go which to can check/validate its schema when is created a new variable (of that type)?
By example, to validate if a string has 20 characters, I…
I'm new to JavaScript so I have no idea why this code does not work and validate my HTML5 Form like it should.
The JavaScript code which can be found below is supposed to check if…
I'm still fairly new to rails so I'm not sure what I'm missing here.
I'm using GeoKit to geocode an address upon saving. I have a method that geocodes an address and if it fails…