Jump to content

Archived

This topic is now archived and is closed to further replies.

paulley23

querystrings are not running

Recommended Posts

hi

i have this code,

[code]
<?php

if ($home == "") {
require("page.php");
}
else if($home == "1") {
require("page1.php");
}


?>

[/code]

when i go to www.domain.com/h/ page.php shows but when i go to www.domain.com/h/?home=1 it should display page1.php but it displays page.php still

thanks for any help

paul

Share this post


Link to post
Share on other sites
[code]
<?php
$home = $_GET[home];

if($home == false){
header ("Location: page.php");
}else if($home == 1){
header ("Location: page1.php");
};
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.