Well you see, I'm not really sure how but I'm guessing I can cut the code below by about 70% of its length if I can turn the "mandatory fields" into an array. Anyone care to help? Thank you so much in advance!
<?php session_start();
if (isset($_POST['submit']))
{
if (empty($_POST['cliname'])){
$_SESSION['err'] = "All fields are mandatory!";
}else if (empty($_POST['cliadd'])){
$_SESSION['err'] = "All fields are mandatory!";
}else if (empty($_POST['clino'])){
$_SESSION['err'] = "All fields are mandatory!";
}else if (empty($_POST['cliprod'])){
$_SESSION['err'] = "All fields are mandatory!";
}else if (empty($_POST['clitest'])){
$_SESSION['err'] = "All fields are mandatory!";
}else if (empty($_POST['clidr'])){
$_SESSION['err'] = "All fields are mandatory!";
}else {click_submit();}
}
$err = $_SESSION['err'];
?>