Book First Lesson

[PHP_Everywhere]

 

Learn to Drive in an Automatic Car

// Display yes/no buttons for learning to drive in automatic car
echo ”

Do you want to learn to drive in an automatic car?

\n”;
echo “\n”;
echo “\n”;

// Check user answer for learning to drive in automatic car
if (isset($_GET[‘answer’]) && ($_GET[‘answer’] == ‘no’)) {
echo ”

Sorry, we only teach people to drive automatic cars.

\n”;
exit;
} elseif (isset($_GET[‘answer’]) && ($_GET[‘answer’] == ‘yes’)) {
// Display yes/no buttons for provisional license
echo ”

Have you got a provisional driving licence?

\n”;
echo “\n”;
echo “\n”;
}

// Check user answer for provisional license
if (isset($_GET[‘answer2’]) && ($_GET[‘answer2’] == ‘no’)) {

echo ”

You need to get a provisional driving licence. Apply for your first provisional driving licence from DVLA online. To apply you must:

\n”;
echo ”

    • \n

    • Be at least 15 years and 9 months old

\n

    • Be able to read a number plate from 20 metres away

\n

    • Have been given permission to live in Great Britain (England, Scotland and Wales) for at least 185 days

\n

\n”;

exit;
} elseif (isset($_GET[‘answer2’]) && ($_GET[‘answer2’] == ‘yes’)) {
// Display yes/no buttons for living in Dorset
echo ”

Do you live in Dorchester, Weymouth and Portland?

\n”;
echo “\n”;
echo “\n”;
}

// Check user answer for living in Dorset
if (isset($_GET[‘answer3’]) && ($_GET[‘answer3’] == ‘no’)) {
echo ”

Sorry, we only cover Dorchester, Weymouth and Portland.

\n”;
exit;
} elseif (isset($_GET[‘answer3’]) && ($_GET[‘answer3’] == ‘yes’)) {

echo ”

Thats all good news. Please visit our booking page to schedule your first lesson.

\n”;
exit;
}
[/PHP_Everywhere]