Help!! with php code
Started on the old forum in June 2010 · view the original in the archive · old links redirect here
really, use get method and your forms have to take names like parameters at get-query... or... use links 😉
<?php
$page = $_GET['page'];
$id = (int) $_GET['id'];
$act = $_GET['act'];
/// Use this block of if...else statements
if($page == 'about')
{
echo 'about page';
}
elseif($page == 'sh!t')
{
echo 'sh!t page lol';
}
else
{
echo 'default landing page';
}
// ...or use this block of switch...case statement
switch($page)
{
case 'about':
echo 'about page';
break;
case 'sh!t':
echo 'sh!t page lmao';
break;
default:
echo 'default landing page';
break;
}
?>
that easy.
mobileGIGS, I thought that he wants another...) processing of get-query really so easy!