67 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for larry29936

The validation section of my contact.php page is sending the user back to my index.php instead of staying on the contacts.php page so the user can correct the reported error. How can I fix this? My contact.php code follows: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $message = …

Member Avatar for Dani
0
675
Member Avatar for seularts

I have a checkbox input switch set up over the Input text box that acts as an on/off switch for that particular field. I am also using jQuery Validator (jqueryvalidation.org) to handle the errors for empty fields. The issue is that when the error hops in, my switch is pushed …

Member Avatar for rproffitt
0
309
Member Avatar for jean_5

I have the following table User in my database Name(Varchar) DateOfBirth(datetime) Age(int) Name(Varchar) | DateOfBirth(datetime) | Age(int) John | 2014-12-20 23:59:59 | 0 Mary | 2014-12-20 23:59:59 | 1 How can i verify throught javascript if the field DateOfBirth of the table User of the database z is of type …

Member Avatar for jean_5
0
372
Member Avatar for facadie

HiHi seems like i have so many queries for programming.. EG. textbox use to set the password how can i make a program so that i can set MINIMUM character to be inserted in textbox is 7 then i can save the data if not validate[ insert password with at …

Member Avatar for vadde
0
4K
Member Avatar for Varunkrishna

Hi all I have a textarea I would like to validate the same for empty spaces and on no input. Please find my jsfiddle [here](http://jsfiddle.net/Varun_Krishna/jJh8q/). How do I validate for empty spaces in the text area? what am I missing in my fiddle? Thanks Varun Krishna. P

Member Avatar for Varunkrishna
0
2K
Member Avatar for Sumith Asanka

Hi Guys I have 2 buttons on my we page one is to save and other button to view a list ,i have applied field validator to validate form fields , but when i click the list button also the required field validator is activating how can i stop that …

Member Avatar for Sumith Asanka
0
234
Member Avatar for ignnniter

ello There, i want to ask, how can i customize this function to allow only certain email domain. like for instance A & B wants to register, A email = test@ymail.com B email = test@onlyalloweddomain.com how can i validate that? here's my function function validate_values() { // Create the array …

Member Avatar for Tpojka
0
5K
Member Avatar for dlmagers

I am studying for a test and I am trying to figure this out, Could someone please help me with this answer? I think it might be number 2, (/^\d{5}$/) I am not sure. What are your suggestions? 1. /[d5]/ 2. /^\d{5}$/ 3. /+\d[5]?/ 4. /$\d5^/

Member Avatar for pritaeas
0
202
Member Avatar for lizzy2

Hi, I am working on a program that prompts the user for answers to a quiz. The answers can only be a, b, c or d and they are saved to an array which I later compare to my answer key array. Below is the method I have written to …

Member Avatar for lizzy2
0
1K
Member Avatar for coder91

I have a page that allows you to insert a new item or update an existing item. I am using a formview for it, I have custom validation in place for the insert to check that the item number isn't already stored in the database, if it is a panel …

Member Avatar for annaharris
0
237
Member Avatar for jonow

Hi, i have a form that when filled out sends and email. I want to be able to validate it, so check that all the fields are filled using PHP. I have found this website: [URL="http://www.phpjabbers.com/phpexample.php?eid=27"]http://www.phpjabbers.com/phpexample.php?eid=27[/URL] that i used to validate it but i am not sure how to combine …

Member Avatar for Squidge
0
985
Member Avatar for SA_PlaYeR
Member Avatar for SLMQC

I am trying to validate two text boxes in VB 10 Express. The first validation (parts) is working as desired, and the form will not proceed to the next step until zero or a positve number is entered. The second validation (labor) is not working as I would like. If …

Member Avatar for SLMQC
0
262
Member Avatar for milkman93

Hey Everyone, I am trying to create login page where if the user doesn't enter a value into the username and password textfields a box fades in (JQuery function) telling the user to enter info. I know I can just add the `required = "required"` to the input tag, but …

Member Avatar for milkman93
0
7K
Member Avatar for professor123

hie i have a php form which will require a user to enter an ID Number in this particular form e.g. 34 1297336 Z 42 how to i create an easy and neat validation for that field. thanks any help will be appreciated!

Member Avatar for professor123
0
159
Member Avatar for davidjennings

Hi All - I am trying to correctly valididate forms on serverside using PHP and on client side with JavaScript I seem to have got lost in the processes here. Thanks DJ <?php // define variables and initialize with empty values $fname = ""; $fnameErr =""; $lname = ""; $lnameErr …

Member Avatar for rotten69
0
304
Member Avatar for aabbccbryanmark

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Burger extends JFrame implements ActionListener { JLabel lblForAll, lblBelow, pic, pic1, pic2, pic3, pic4, pic5, pic6, pic7; JRadioButton rBtn, rBtn1, rBtn2, rBtn3; JCheckBox cBtn, cBtn1, cBtn2, cBtn3; JTextField txt, txt1, txt2, txt3, txt4, txt5; JButton btn1, btn2; ButtonGroup btnG; int ham=25, egg=15, …

Member Avatar for aabbccbryanmark
0
2K
Member Avatar for PriteshP23

JavaScript is not working: // HTML <form id="formLogin" name="formLogin" method="post" action="" onsubmit="validateForm(this) /"> <div class="divLogin"> <table> <tr> <td> Enter your Email: </td> <td> <input type="text" id="checkemail" name="txtEmail" required="required" autocomplete="off" /> </td> </tr> <tr> <td> Enter your Password: </td> <td> <input type="password" id="checkpwd" name="pwd" minlength="6" required="required" autocomplete="off" /> </td> </tr> </table> …

Member Avatar for PriteshP23
0
280
Member Avatar for garyjohnson

This is my java code, all the id's are the ids of divs on the page. They are all labeled respectiviley. It takes the input of the form. There are six possble errors that can occur which are, the emails dont match. First name contains characters other than letters, last …

Member Avatar for garyjohnson
0
229
Member Avatar for xHellghostx

Hey guys.. I am having a small problem with a program I wrote, the problem is that I have an array that stores a user input and it should be numeric only when the user inputs an invalid input like let's say J the program will notifiy them that they …

Member Avatar for Ketsuekiame
0
239
Member Avatar for dinhunzvi

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT …

Member Avatar for dinhunzvi
0
228
Member Avatar for leyla

I was just wondering if there was any way to validate a listbox into only allowing a letter to be entered once, no matter the case. I am making a Hangman game and I only want the user to be able to enter a letter once, but I want the …

Member Avatar for leyla
0
681
Member Avatar for SMode55

I wrote this script for my validation page.I used javascript and jquery mixed it all up. For some reason when I submit the gender validation doesnt work right, it keeps asking to validate but every other condition works. What I've pasted below is just the gender condition and the "if …

Member Avatar for AleMonteiro
0
928
Member Avatar for renzlo

Hi, All, I need to check if the date values is valid this current year, for example, February 29, 2012, I have used Isdate function but it says "True", is there any other way to do this? Thanks in advance. renzlo

Member Avatar for Reverend Jim
0
214
Member Avatar for fcvolunteer

I'm working on a dynamic form where based on a visitor's selection of radio buttons certain <div> text and additional fields are shown or hidden. I would like to make some of these additional fields required but only if they are visible. Problem is: I can read php more than …

Member Avatar for fcvolunteer
0
1K
Member Avatar for double_cola

Good afternoon everyone. I need to write out a simple validation. It needs to validate only if a user enters certain keywords. Here what I have so far: if(!preg_match("Indiana, Ohio", $state)) { $errors .= "You have entered the wrong state."; } What would be the correct preg_match function to only …

Member Avatar for double_cola
0
187
Member Avatar for iamjin04

<html> <head> <script language="JavaScript"> function validator() { if (text_form.name.value == "") { alert("Please enter your name"); text_form.name.focus(); return false; } return true; } </script> </head> <body> <form name="text_form" method="get" action="success.html" onsubmit="validator()"> <label for="name"> Name </label> <input type="text" name="name"/> <br /> <input type="submit" value="submit" /> <input type="reset" value="reset" /> </form> </body> …

Member Avatar for iamjin04
0
170
Member Avatar for Khav

Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = …

Member Avatar for Khav
0
242
Member Avatar for grant.baker

Hi I'm working on a form validation script. Up to this point, I've only written very basic regex validations. The input that I'm trying to validate should have entries in the following format AAA111 separated by comma space. So some sample entries are : `ABC111` or `ABC111, ABC112, ABC113`. Here's …

Member Avatar for grant.baker
0
284
Member Avatar for Travus

I am using the [jQuery validation](http://docs.jquery.com/Plugins/Validation) plug in on a website I am creating. The validation works, and the messages are set, however when they get displayed on my webpage they have line breaks. I only display one message at a time so I dont know why a single message …

Member Avatar for Travus
0
1K

The End.