<a href="sample.php?choice1">click</a>
It will do whatever choice1 may be on the next page, so theres like if and else statements that execute, seeing what was put in the URL...
Edited by l3lueMage, 04 May 2006 - 03:09 AM.
Posted 04 May 2006 - 02:54 AM
<a href="sample.php?choice1">click</a>
Edited by l3lueMage, 04 May 2006 - 03:09 AM.
Posted 04 May 2006 - 04:31 AM
<?php
$allowed = array('sample1', 'sample2');
$page = (isset($_GET['page'])) ? $_GET['page'] : īWelcome;
if (in_array($page, $allowed)) {
include("$page.php");
}
else {
include("frontpage.php");
}
?>
<a href="index.php?page=sample1">Sample1</a><br />
<a href="index.php?page=sample2">Sample2</a><br />
Posted 04 May 2006 - 08:11 PM
<?php
//next page, url is sample.php?choice1
if(isset($_GET['choice1']))
{
echo $content;
} else {
echo $error
}
?>
Posted 06 May 2006 - 01:59 AM
Edited by l3lueMage, 06 May 2006 - 01:59 AM.
0 members, 1 guests, 0 anonymous users