rastaman46 Posted April 12, 2012 Share Posted April 12, 2012 Hello again having trouble to switch pages All it dose just refrashe page <a href=/?p=cinema&pid=503&act=video>Test</a> $keiciam = isset($_GET['act']) ? $_GET['act']:''; switch($keiciam) { case 'video': eval("\$cinema_player = \"".$TSUE['TSUE_Template']->LoadTemplate('cinema_player')."\";"); break; default: } Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/ Share on other sites More sharing options...
MMDE Posted April 12, 2012 Share Posted April 12, 2012 What is it you are trying to achieve? That code looked like a big mess. Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336751 Share on other sites More sharing options...
scootstah Posted April 12, 2012 Share Posted April 12, 2012 This is one of those cases where using eval is entirely unacceptable. Don't do that. Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336759 Share on other sites More sharing options...
rastaman46 Posted April 12, 2012 Author Share Posted April 12, 2012 how to do it other way im cant use echo Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336797 Share on other sites More sharing options...
xyph Posted April 12, 2012 Share Posted April 12, 2012 $cinema_player = $TSUE['TSUE_Template']->LoadTemplate('cinema_player'); Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336802 Share on other sites More sharing options...
rastaman46 Posted April 12, 2012 Author Share Posted April 12, 2012 dont work even if im do $mycode = 'Can get dam thing to make me page'; any other options make page like index.php?mypage ???? Quote Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336807 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.