Forum Moderators: coopster
if (isset($_POST['submit'])) {
if (!isset($_POST['lname'])) ¦¦ !isset($_POST['fname'])) {
$display .= 'Error';
} else { //continue script $fname = isset($_POST['fname']) ? trim($_POST['fname']) : '';
$lname = isset($_POST['lname']) ? trim($_POST['lname']) : '';
if ($fname ¦¦ $lname) {
// one of them is filled in, with a non-zero value anyway
}