<?php <br mode="hold" /?> if(isset($_POST['submit'])) { /*********************************************************************** Your Sample Code is here ***********************************************************************/ //This makes sure they did not leave any field blank if(!$_POST['Username']|!$_POST['Password']|!$_POST['F_Name']|!$_POST['L_Name']| !$_POST['Gender']|!$_POST['year']|!$_POST['month']|!$_POST['day']|!$_POST['street']| !$_POST['City']|!$_POST['Code']|!$_POST['Country']|!$_POST['Email']|) { die('You did not complete all of the required fields'); } /******************************************************************************************************************************** My Changes are here *********************************************************************************************************************************/ if(empty($_POST['Username']) || empty($_POST['Password'])) { die('You did not complete all of the required fields'); } } ?>
if(!$_POST['Username']|!$_POST['Password']|!$_POST['F_Name']|!$_POST['L_Name']| !$_POST['Gender']|!$_POST['year']|!$_POST['month']|!$_POST['day']|!$_POST['street']| !$_POST['City']|!$_POST['Code']|!$_POST['Country']|!$_POST['Email']|)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)