Questions tagged [validation]

Validation is used to check data to make sure it fits whatever required specifications are set for it.

Filter by
Sorted by
Tagged with
5
votes
2answers
107 views

Validating a user

This works well, but can anybody see any faults in this code? If so, could you suggest ways in which I can fix it? ...
2
votes
1answer
2k views

Validation of Time

I am trying to validate time entry. ArrTime is the time entered by the user from the UI. I am trying to make it so that when a user attempts to add a time, it must ...
5
votes
2answers
1k views

Simple form validation script

This is a simple form validation script. I'd like to: improve the jQuery validation simplify the jQuery code Questions: Should I be exporting pure JS validation to avoid potential conflicts with ...
2
votes
1answer
299 views

Web service to add a phone number with SMS validation

I'm new to Clojure. How can I make this more idiomatic Clojure code? Among other things, there are three (do) blocks and I don't think using (def) as many times as I do is a recommended idea. ...
10
votes
5answers
842 views

Verifying if a car is a sports car based on speed and horse power

I have an assignment where I am required to verify if a car is a sports car or not by minimum max speed and minimum horse power. I have finished the program and it works great. I was just wanting to ...
5
votes
1answer
3k views

Ajax form validation

This is my first ever attempt at Ajax form validation, and everything works as expected, the final true example will hold a lot more input fields than in my testing scripts which are below. The file ...
2
votes
2answers
4k views

Function to validate a file name

This function checks if a file name is valid or not. I think it's not good enough for integration (not optimized, maybe I forgot about some checks), so need your comments. ...
14
votes
3answers
18k views

Validating Excel file columns

I'm looking for ways to improve this code (more readable, less redundant and maybe cleaner/faster). The problem I needed to solve: I was designated to implement a software that is going to validate ...
2
votes
1answer
477 views

Validating forms data

Here is a class that I made to validate forms data. I will really appreciate any criticism and hints. ...
3
votes
3answers
765 views

Email text validator

I'm using this pattern for the first time and wanted to check if this is the correct implementation. class.validator.strategy.php ...
5
votes
2answers
427 views

Validating username fields and showing CAPTCHA

I'm new to coding, and especially to OOP PHP. I'll highly appreciate if you expert programmers could review following code and give me your opinion to make it better. Also, how you see this code, is ...
2
votes
2answers
300 views

Form validator class and child classes

I am creating a form class for validating form data, and would like some advice on how to refactor it for best practices. Keep in mind that this is a rough draft. Basically, there is a form abstract ...
6
votes
3answers
15k views

Data validation for preventing blank entries

I want to create a validation wherein blank entries will not be accepted. So if I call this code: ...
6
votes
2answers
581 views

Basic form validation

Question + Desired Outcome The code below works currently, however I'm not convinced the utilisation of an Array to iterate through numerous non-existent form ...