Ok OptimusGeorge I'll give you a php version of the script right now:
Code:
<form action="Decide.php">
<!-- Form Stuff -->
<input type="checkbox" name="PageOne" value="1" />
<input type="checkbox" name="PageTwo" value="2" />
<input type="submit" value="GO TO THERE!">
</form>
Thats the PHP code now keep two things in mind:
Code:
name="PageOne" value="1"
Here is the php code which goes on Decide.php
Code:
<?php
function GotoOne(){
echo "Page location: index.php, secret.htm, something.html, anything works just as long as its a real page...";
$br = "<br />";
}
function GotoTwo(){
echo "Second Page location: index.php, secret.htm, something.html, anything works just as long as its a real page...";
$br = "<br />";
}
$GotoPageone = $_POST["PageOne"];
//If you change PageOne in the form change it here!
$GotoPagetwo = $_POST["PageTwo"];
if($GotoPageone==1){
echo "Please click here:";
echo $br;
GotoOne();
}
if($GotoPagetwo==2){
GotoTwo();
}
?>
That should work... I don't know how to do it in javascript though cuz I am not good at it...
Bookmarks