Jump to content


Photo

querystrings are not running


  • Please log in to reply
3 replies to this topic

#1 paulley23

paulley23
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 15 October 2006 - 11:47 PM

hi

i have this code,

<?php

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


?>


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

#2 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 15 October 2006 - 11:49 PM

<?php
$home = $_GET[home];

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


#3 paulley23

paulley23
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 16 October 2006 - 12:09 AM

thanks it works  ;D

#4 marcus

marcus
  • Members
  • PipPipPip
  • Advanced Member
  • 1,842 posts
  • LocationRochester, NY

Posted 16 October 2006 - 12:15 AM

no problem




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users