Advertisement

07.24.2008 at 01:33PM PDT, ID: 23593700
[x]
Attachment Details

Basic PHP question -- validate something before submitting the form

Asked by VoodooFrog in PHP for Windows

I have a pretty basic ( I hope) question.  I am learning PHP and want to make a small database driven site.  I have the data connections set up and am running an ODBC connection to SQLServer Express -- which I thought was going to be the hard part.  Now I just want to quickly test to make sure that there the fields required to submit the record have been filled out.  I don't know the right way to do this.  I have searched through w3schools and other websites and I am assuming I am just missing something simple.

Basic functionality I want:

onclick for the submit button:
1)  check if fields A,B,C are not empty
2) if they all have something in them, call page2.php



Start Free Trial
[+][-]07.24.2008 at 01:45PM PDT, ID: 22083349

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP for Windows
Sign Up Now!
Solution Provided By: mwecomputers
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.24.2008 at 02:00PM PDT, ID: 22083492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628