Okay what is wrong with this PHP script? My brain hurts so bad....
<?PHP
if (isset($_GET['do']))
{
switch ($_GET['do'])
{
case 'home':
echo '<p><h1> Home </h1></p>';
echo 'Content for this item is not yet complete.';
break;
case 'services':
echo '<p><h1> Services </h1></p>';
echo 'Content for this item is not yet complete.';
if (isset($_GET['actionid'])) {
switch ($_GET['actionid']) {
case '0001':
echo '<p> Translation / Interpretation </p>';
case '0002':
echo '<p> Language Program Building </p>';
case '0003':
echo '<p> Online Teaching / Tutoring </p>';
default:
echo '<p> Incorrect actionid, please try again.</p>';
}
} else
{
echo 'Error code# xxx2, actionid was not specified.';
}
break;
case 'aboutus':
echo '<p><h1> About Us </h1></p>';
echo 'Content for this item is not yet complete.';
if (isset($_GET['actionid'])) {
switch ($_GET['actionid']) {
case '0004':
echo '<p> Our Mission </p>';
case '0005':
echo '<p> Our Vision </p>';
case '0006':
echo '<p> Our Goals </p>';
case '0007':
echo '<p> Company Founder </p>';
case '0008':
echo '<p> Our Team </p>';
default:
echo '<p> Incorrect actionid, please try again.</p>';
}
} else
{
echo 'Error code# xxx2, actionid was not specified.';
}
break;
case 'contactus':
echo '<p><h1> Contact Us </h1></p>';
echo 'Content for this item is not yet complete.';
if (isset($_GET['actionid'])) {
switch ($_GET['actionid']) {
case '0009':
echo '<p> Questions / Concerns </p>';
case '0010':
echo '<p> Employment Form </p>';
case '0011':
echo '<p> FAQ's </p>';
case '0012':
echo '<p> Contact Information </p>';
default:
echo '<p> Incorrect actionid, please try again.</p>';
}
} else
{
echo 'Error code# xxx2, actionid was not specified.';
}
break;
case 'products':
echo '<p><h1> Products </h1></p>';
echo 'Content for this item is not yet complete.';
if (isset($_GET['actionid'])) {
switch ($_GET['actionid']) {
case '0013':
echo '<p> Product Showcase </p>';
default:
echo '<p> Incorrect actionid, please try again.</p>';
}
} else
{
echo 'Error code# xxx2, actionid was not specified.';
}
break;
default:
echo '<p><h1> Error code# xxx3, Invalid do.</h1></p>';
echo '<p> Please try again </p>';
break;
}
} else
{
echo '<p><h1> Error code# xxx1, do was not specified.</h1></p>';
}
?>