Any 1 knows how to make pages lyke page.php?page=1&id=1&act=yes
Help!! with php code
Collapse
X
-
PHP Code:<?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;
}
?>
Comment
Comment