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 Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
paulley23 Posted October 16, 2006 Author Share Posted October 16, 2006 thanks it works ;D Quote Link to comment Share on other sites More sharing options...
marcus Posted October 16, 2006 Share Posted October 16, 2006 no problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.