Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $errors = ________ // put your error messages in here
- ?>
- <html>
- <head>
- <title>whatevers</title>
- </head>
- <body>
- <form>
- </form>
- <?php
- if ($errors.length >= 1) {
- // build in your error markup here
- echo '<div class=\"errors\">';
- echo '<ul>';
- foreach ($error in $errors) { // assumes $errors is an array
- echo '<li>'.$error.'</li>';
- }
- echo '</ul>';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement