-
Notifications
You must be signed in to change notification settings - Fork 0
/
proceed.php
44 lines (40 loc) · 1.06 KB
/
proceed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
if (isset($_POST)) {
$to_city = $_POST['city_to'];
$from_city = $_POST['city_from'];
$kilos = $_POST['kilograms'];
$meters = $_POST['meters'];
$options = $_POST['options'];
$del_to_addr = false;
$del_from_addr = false;
$rigid = false;
$stretch = false;
$bort = false;
$insurance = false;
if (isset($options)) {
foreach ($options as $opt) {
switch ($opt) {
case 'opt1':
$del_to_addr = true;
break;
case 'opt2':
$del_from_addr = true;
break;
case 'opt3':
$rigid = true;
break;
case 'opt4':
$stretch = true;
break;
case 'opt5':
$bort = true;
break;
case 'opt6':
$insurance = true;
break;
default:
break;
}
}
}
}