troubleshooting Question

php form validation - highlight errors

Avatar of janenh1955
janenh1955 asked on
PHP
11 Comments1 Solution584 ViewsLast Modified:
Hi experts,

I need to validate this php form and highlight incorrect field names and inputs.
For validation i need required, numeric and minlength.

Thanks.


<form AUTOCOMPLETE="on" name="form_2b" method="post" id="form_2b" action="<?=$_SERVER['PHP_SELF']?>">

                        <tr >
                              
                              <td><label>Name:</label></td>
                              
                              <td><input type="text_input" name="name" id="name" style="WIDTH: 150px" value="<?php echo $_POST['name']?>"/>

                              </td>
                        </tr>
                        <tr >
                              
                              <td><label>Address:</label></td>
                              
                              <td><input type="text_input" name="address" id="address" style="WIDTH: 150px" value="<?php echo $_POST['address']?>"/>

                              </td>
                        </tr>
                        <tr >
                              
                              <td><label>Email:</label></td>
                              
                              <td><input type="text_input" name="email" id="email" style="WIDTH: 150px" value="<?php echo $_POST['email']?>"/>

                              </td>
                        </tr>
</form>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros