/ Published in: PHP
Trying to resolve without Global Variables.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if (!$_POST['email']) { } if (!$_POST['phone']) { } ?> <body> <?php if(in_array('email', $validation)): ?><span class="error"><?php echo 'Please enter an email address'; ?></span><?php endif; ?> </body>