Advertisement
enochmh2

submit and blank fields

Dec 19th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if (isset($_POST['submit'])) {
  2. //This makes sure they did not leave any fields blank
  3. if (!$_POST['username'] | !$_POST['pass'] | !$_POST['email']) {
  4. die('You did not complete all of the required fields'); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement