You are here: switch case problem « PHP Language « IT news, forums, messages
switch case problem

Posted by ray on 10/23/05 16:06

I use the following switch case in my website, on apache (on linux)
this is working fine when I call de url
http://website/home.php?page=1

it shows the content i want to see, but on IIS6.0 on windows server
2003 it only shows the case 0, nomather the page=* I use.

Does anybody know what I am doing wrong?

php code:

<?php
switch($page){
case 0:
include "home.inc";
break;

case 1:
include "foto.inc";
break;

case 2:
include "email.inc";
break;

case 3:
include "diversen.inc";
break;

case 4:
include "gastenboek.inc";
break;

case 5:
include "links.inc";
break;

case 6:
include "overons.inc";
break;

case 7:
include "update.inc";
break;

}
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация