Please can someone code this right
When in url write ie http://site.tld/index.php?action=blabla , it does not get Error 404 page, gets something blank...
PHP Code:
<?php
$action = strip_tags(trim($_GET['action']));
function header()
{
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
<html>';
}
function footer()
{
echo '
</body></html>';
}
// INDEX PAGE
if($action == "")
{
echo header();
echo '<p>...</p>';
echo footer();
exit();
}
if($action == "friends")
{
echo header();
echo '
Site Friends<hr/>
<div><a href="http://">link</a></div>
<div>> <a href="http://">link</a></div>';
echo footer();
exit();
}
?>
Comment