paulley23 Posted October 15, 2006 Share Posted October 15, 2006 hii have this code,[code]<?phpif ($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 stillthanks for any helppaul Link to comment https://forums.phpfreaks.com/topic/24039-querystrings-are-not-running/ Share on other sites More sharing options...
marcus Posted October 15, 2006 Share Posted October 15, 2006 [code]<?php$home = $_GET[home];if($home == false){header ("Location: page.php");}else if($home == 1){header ("Location: page1.php");};?>[/code] Link to comment https://forums.phpfreaks.com/topic/24039-querystrings-are-not-running/#findComment-109218 Share on other sites More sharing options...
paulley23 Posted October 16, 2006 Author Share Posted October 16, 2006 thanks it works ;D Link to comment https://forums.phpfreaks.com/topic/24039-querystrings-are-not-running/#findComment-109228 Share on other sites More sharing options...
marcus Posted October 16, 2006 Share Posted October 16, 2006 no problem Link to comment https://forums.phpfreaks.com/topic/24039-querystrings-are-not-running/#findComment-109231 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.