206 Topics

Member Avatar for
Member Avatar for PriteshP23

Hello, I would like to solve form validation and filename problem. Here is my code: /************************** Step 1: Select Cell************************************/ if(isset($_POST['SmartPhone'])) $checked1=$_POST['SmartPhone']; $form->add_checkbox('SmartPhone','SmartPhone',$checked1); if(isset($_POST['Apple'])) $checked2=$_POST['Apple']; $form->add_checkbox('Apple','Apple',$checked2); /************************** Step 2: Select Model************************************/ if($_POST['SmartPhone']==false and $_POST['Apple']==false) { $this->add(new error('<span style="color:red">Select your cell..!!</span>')); $this->step1(); return; } if(isset($_POST['S4'])) $tech2=$_POST['S4']; $form->add_checkbox('S4','S4',$tech2); if(isset($_POST['iPhone 5'])) $tech3=$_POST['iPhone 5']; …

Member Avatar for andreiviziru
0
418
Member Avatar for pssubash

I need all the possible combinations alphabets, numbers (a-z0-9) , _(underscore) and .(dot) which must satisfy the below conditions Please use between 6 and 30 characters. Please use only letters (a-z), numbers(0-9) The first character should be a letter (a-z) or number. The last character a letter (a-z) or number. …

Member Avatar for minitauros
0
135
Member Avatar for Ketsuekiame

Hiya, I've just tried updating my profile with better information, however it fails to validate my MSN address and Twitter account. As a note, I hadn't actually updated these values, they were already in the system. ![395f67d86f7803faa07f84ddaffdff05](/attachments/large/3/395f67d86f7803faa07f84ddaffdff05.PNG "395f67d86f7803faa07f84ddaffdff05")

Member Avatar for Dani
1
337
Member Avatar for nigelhow

Hi, When i leave my text boxes empty , there will be errors that will be displayed beside my text boxes.Example: type is required. I have a file name trade form result.php which defines all my validations and price.php which inserts in to database.It is going into the first if …

Member Avatar for nigelhow
0
257
Member Avatar for LegateLucius

hereis my code the html is on http://cdpn.io/rzcAu /************************************************************************** validation ***************************************************************************/ /*********validation Variables************/ var Email = document.getElementsByName("Email"); var Password = document.getElementsByName("Password"); var firstName = document.getElementsByName("FirstName"); var secondName = document.getElementsByName("SecondName"); var Captcha = document.getElementsByName("Captcha"); var name = document.getElementsByName("Name"); var Subject = document.getElementsByName("Subject"); var Message = document.getElementsByName("Message"); /*********validation Code************/ function email_validation(){ if …

Member Avatar for stbuchok
0
210
Member Avatar for saurabh2007

I am working with JQuery Validation plugin and am having trouble validating the form. The following is a live version of my form: http://demcode.3eeweb.com/ The following is the code for my index.php file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>DemCodeLines</title> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for davidjennings
0
301
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
236
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 kingsonprisonic

This module is for validating textboxes.... After using this module in your project you can simply validate all of your text boxes like [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AssignValidation(Me.TextBox1, ValidationType.Only_Digits) AssignValidation(Me.TextBox2, ValidationType.Only_Characters) AssignValidation(Me.TextBox3, ValidationType.No_Blank) AssignValidation(Me.TextBox4, ValidationType.Only_Email) End Sub [/CODE]

Member Avatar for Iamateur
4
1K
Member Avatar for LegateLucius

hello im a newbie in javascript and im working oon a project can someone help me learn form validation in javascript also give me links on great tutorial sites

Member Avatar for LegateLucius
0
331
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 cyberdaemon

Good day, I am having trouble with the excel file that i was uploaded.. after i uploaded the excel file i want to validate each header and each datatype of it. just to make sure that my dbase has integrity.let say i have 10 columns. Is there a way on …

Member Avatar for Nalestard
0
270
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 thetwig

The form submits even when there are validation errors. How do I disable the submit button when there are validation errors? Here is the .js file ,submitFu:function(){ _.validateFu(_.labels) if(!_.form.has('.'+_.invalidCl).length) $.ajax({ type: "POST", url:_.mailHandlerURL, data:{ name:_.getValFromLabel($('.name',_.form)), email:_.getValFromLabel($('.email',_.form)), phone:_.getValFromLabel($('.phone',_.form)), //fax:_.getValFromLabel($('.fax',_.form)), //state:_.getValFromLabel($('.state',_.form)), message:_.getValFromLabel($('.message',_.form)), owner_email:_.ownerEmail, stripHTML:_.stripHTML }, success: function(){ _.showFu() } }) }, showFu:function(){ …

Member Avatar for LastMitch
0
279
Member Avatar for momonq1990

$("#contact-form").validate({ rules: { contact_name: { required : true, email: {required: true, email: true } }, contact_company: "required", }, messages:{ "contact_name":"", "contact_company":""} }); How to add a messagebox to jsvalidation that says "you sent message"

Member Avatar for LastMitch
0
191
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
303
Member Avatar for xHellghostx

So I am writing a program that checks for an employee pay, the user enters a fullname (firstname, lastname) and then a number of pieces that needs to be processed, how would you validate that the full name is acceptable? for example we enter in the name texbox the name …

Member Avatar for Reverend Jim
0
4K
Member Avatar for akvarel1

Hello again I am trying to show the errors that can occur by uploading a file (file name, size). I tried to modify this code cut-off but I could not. else format.html { render action: "new" } format.json { render json: @upload.errors, status: :unprocessable_entity } end I have following validations …

Member Avatar for LastMitch
0
163
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 akasekaihime

Hello, Good evening! I am trying to validate my atachments in my system. In my program, there is an upload button, what I am trying to do is to validate it by not copying and saving the upload file once it already exists in the database..... HERE IS MY CODE: …

Member Avatar for Reverend Jim
0
246
Member Avatar for Blousey17

This procedure is called just before the answer is written to a binary file to ensure it is in the correct format. It works but I need it to repeat until it is an integer. I was trying to use a 'repeat','until' but wasnt sure what the 'until' condition woudld …

Member Avatar for pritaeas
0
236
Member Avatar for Niatia

Hi, I'm a bit of a newbie to Pascal and I'm trying to create a simple program to convert binary numbers to decimal, I'm unsure of how I can disallow an input that is not binary, this is my code: var Validation : boolean; Binary, Number : String; Decimal, index, …

Member Avatar for pritaeas
0
326
Member Avatar for nunuaziz_

Ive been stuck on trying to validate multiple radio buttons. Can anyone please help me out? I have about 5 radio buttons.......

Member Avatar for AleMonteiro
0
220
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
228
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 iamthesgt

I am working on a Windows application, and I have a Settings Dialog box with 5 text fields. I currently get the values of each text field with: GetDlgItemText(hDlg, IDC_EDIT_SIPADDRESS, sipAccount->sipAddress, 80); GetDlgItemText(hDlg, IDC_EDIT_USERNAME, sipAccount->userName, 80); GetDlgItemText(hDlg, IDC_EDIT_PASSWORD, sipAccount->password, 80); GetDlgItemText(hDlg, IDC_EDIT_HOST, sipAccount->host, 80); GetDlgItemText(hDlg, IDC_EDIT_STUN, stun, 80); And then …

0
87

The End.