<?php
if (isset($_REQUEST['tab'])): $tab = $_REQUEST['tab'];
if ($tab == 4)
{
echo '4th Tab Content';
}
elseif ($tab == 3)
{
echo '3rd Tab Content';
}
elseif ($tab == 2)
{
echo '2nd Tab Content';
}
else
{
echo '1st Tab Content';
}
else:
?>
HTML and Javascript codes here
<?php
endif; ?>
PD9waHAKCmlmIChpc3NldCgkX1JFUVVFU1RbJ3RhYiddKSk6CgkkdGFiID0gJF9SRVFVRVNUWyd0YWInXTsKCWlmICgkdGFiID09IDQpCgkJewoJCWVjaG8gJzR0aCBUYWIgQ29udGVudCc7CgkJfQoJZWxzZWlmICgkdGFiID09IDMpCgkJewoJCWVjaG8gJzNyZCBUYWIgQ29udGVudCc7CgkJfQoJZWxzZWlmICgkdGFiID09IDIpCgkJewoJCWVjaG8gJzJuZCBUYWIgQ29udGVudCc7CgkJfQoJICBlbHNlCgkJewoJCWVjaG8gJzFzdCBUYWIgQ29udGVudCc7CgkJfQoJZWxzZToKPz4KCkhUTUwgYW5kIEphdmFzY3JpcHQgY29kZXMgaGVyZQoKPD9waHAKCWVuZGlmOyA/Pg==