<?php $email = ''; $username = ''; $password = 'cheese'; if (empty($password)) { echo 'You need to enter a Password'; } elseif (empty($username)) { echo 'You need to enter a Username'; } elseif (empty($email)) { echo 'You need to enter a Email Address'; } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "You need to have a valid Email Address"; } else { echo 'Done'; }
You have javascript disabled. You will not be able to edit any code.