if functie combineren
gerhard l
10/07/2014 14:33:53Oke dan zou dit hem moeten zijn.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$log_status = '0';
if($_SERVER['REQUEST_METHOD'] == 'POST')
if(!isset($_POST['place'] ) OR $_POST['place'] == ''){
$log_status = '1';
}
elseif(!isset($_POST['x'] ) OR $_POST['x'] == ''){
$log_status = '1';
}
elseif(!isset($_POST['y'] ) OR $_POST['y'] == ''){
$log_status = '1';
}
else{
$log_status = '2';
}
}
?>
$log_status = '0';
if($_SERVER['REQUEST_METHOD'] == 'POST')
if(!isset($_POST['place'] ) OR $_POST['place'] == ''){
$log_status = '1';
}
elseif(!isset($_POST['x'] ) OR $_POST['x'] == ''){
$log_status = '1';
}
elseif(!isset($_POST['y'] ) OR $_POST['y'] == ''){
$log_status = '1';
}
else{
$log_status = '2';
}
}
?>