Question: PHP Programming Hey how can change the font color of a form to red when the user does not meet the requirements? For example: Email:
PHP Programming
Hey how can change the font color of a form to red when the user does not meet the requirements?
For example:
Email: Joe123. // Error. didnt use @, change Email: to color: red.
Password: ****** // Error didnt filed password with at leat 5 characters change Password: to color: Red
1 2 3 4
File : form.php 1 'pass1 'testmail2' => 'pass2 $user=$_POST['email'); Spass=$_POST['pass']; if(array_key_exists($user, $logins)) // checking for user if ($logins [Suser] =- Spass) echo "You have successfully logged in!"; else echo"Sorry, wrong information has been entered!"; else echo" Sorry, wrong information has been entered!"; O localhost/loginform.html E-mail: testmail Password: passi Login o localhostform.php You have successfully logged in
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
