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: } 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. 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. 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 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'); 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 ???? Link to comment https://forums.phpfreaks.com/topic/260815-switch-problem/#findComment-1336807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.