alecoder Posted January 11, 2008 Share Posted January 11, 2008 hey all i have question then For example we have Form registration I will make summary $user_bg = "white"; $user_value = ""; $email_bg = "white"; $email_value = ""; <form action="registration.php" method="post"> <b>Name</b><input type="text" name="user" value="<?php echo $user_value?>"> <b>Email</b><input type="text" name="email" value="<?php echo $email_value?>"> <input type="submit" name="Submit"> </form> then I want to make so only click submit button if (empty($_POST['name']) || strlen($_POST['user']) < 4) {$user_bg = "red"; } then return input border red and else {$user_value = $_POST['name'];} and analogue in email If did not understand here is see to picture Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.