Hi, using PHP and CSS, how do I change the text colour of a label and border colour of a input field upon a user not entering data into any of the fields, or entering an invalid email address or phone number (must be 11 characters)?
Code:<body> <form name="form1" method="post" action=""> <label>Name:</label> <input name="name" type="text" id="name"> <br> <br> <label>Email:</label> <input name="email" type="text" id="email"> <br> <br> <label>Phone:</label> <input name="phone" type="text" id="phone"> <br> <br> <label>Gender:</label> <select name="select"> <option>Male</option> <option>Female</option> </select> <br> <br> <input type="submit" name="Submit" value="Submit"> </form> </body>






Bookmarks