3
3
the ifs and buts for the forms.
7
if($_POST[name]==null){
9
$nameunset = 'style="background-color: red;" ';
7
if($_POST[name] == null){
9
$nameunset = 'class="warning" ';
10
$errorMsg = $errorMsg."you need a name .<br />";
12
13
if($_POST[phone] == null){
14
$phoneunset = 'style="background-color: red;" ';
15
$phoneunset = 'class="warning" ';
16
$errorMsg = $errorMsg."you need a phone number .<br />";
17
19
if($_POST[email] == null){
19
$emailunset = 'style="background-color: red;" ';
21
$emailunset = 'class="warning" ';
22
$errorMsg = $errorMsg."you need an e-mail adress .<br />";
22
25
if($_POST[adress] == null){
24
$adressunset = 'style="background-color: red;" ';
27
$adressunset = 'class="warning" ';
28
$errorMsg = $errorMsg."you need a street adress .<br />";
27
31
if($_POST[StartDate] == null){
29
$StartDateunset = 'style="background-color: red;" ';
33
$StartDateunset = 'class="warning" ';
34
$errorMsg = $errorMsg."you need a start date .<br />";
32
37
if($_POST[EndDate] == null){
34
$EndDateunset = 'style="background-color: red;" ';
39
$EndDateunset = 'class="warning" ';
40
$errorMsg= $errorMsg."you need a end date .<br />";