slashchuck Posted April 11, 2007 Share Posted April 11, 2007 Why does this not work? <?php ......... switch($testid){ case '1': Gen1.php; break; case '2': Gen2.php; break; case '3': Gen3.php; break; } ......... ?> Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 i think you mustinclude() <?php ......... switch($testid){ case '1': include(Gen1.php); break; case '2': include(Gen2.php); break; case '3': include(Gen3.php); break; } ......... ?> Quote Link to comment Share on other sites More sharing options...
per1os Posted April 11, 2007 Share Posted April 11, 2007 Due to not reading the manual, www.php.net/include <?php ......... switch($testid){ case '1': include('Gen1.php'); break; case '2': include('Gen2.php'); break; case '3': include('Gen3.php'); break; } ......... ?> Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 oh i forgot the 's hehe.. Quote Link to comment Share on other sites More sharing options...
slashchuck Posted April 11, 2007 Author Share Posted April 11, 2007 Thank you all. 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.