Multitrip

[insert_php]
//Find
if (isset($_GET[‘submit’])) {
if (isset($_GET[‘country_0’]) && isset($_GET[‘state_0’])) {
$_GET[‘state_0’];
$_GET[‘state_destination’];
}
if (isset($_GET[‘country_1’]) && isset($_GET[‘state_1’])) {
$_GET[‘state_1’];
$_GET[‘state_destination’];
}
if (isset($_GET[‘country_2’]) && isset($_GET[‘state_2’])) {
$_GET[‘state_2’];
$_GET[‘state_destination’];
}
if (isset($_GET[‘country_3’]) && isset($_GET[‘state_3’])) {
$_GET[‘state_3’];
$_GET[‘state_destination’];
}
if (isset($_GET[‘country_4’]) && isset($_GET[‘state_4’])) {
$_GET[‘state_4’];
$_GET[‘state_destination’];
}
}
//Add
if (isset($_GET[‘add_button’])){ //&& isset($_GET[‘Add location 3’]) && isset($_GET[‘Add location 4’]) && isset($_GET[‘Add location 5’])) {
$array_add = explode(‘ ‘,$_GET[‘add_button’]);
$nr_people = $array_add[2];
}
else
{$nr_people = 1;}
[/insert_php]

[insert_php]
if($nr_people <= 5 && $nr_people > 0)
{
for ($i=1;$i < $nr_people; $i++) { echo '

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
}
}
[/insert_php]


[insert_php]
if($nr_people>=1 && $nr_people<5) { $next_person = $nr_people+1; echo "

“;
echo “

“;
echo “

“;
echo “

“;
}
[/insert_php]


‘;
echo ‘‘;
echo ‘