Kryllster Posted September 1, 2009 Share Posted September 1, 2009 When I use this block of code in 1 script. echo "<a href=\"mainview.php?show=fight_view1&first=$first&hitpoints=$hitpoints&mob_hp=$mob_hp\">Continue The Fight!</a>"; and then in mainview.php use this block of code. case 'fight_view1': include('fight_view.php?fight=fight1'); break; Why do I get a blank page. Just wondering is this allowed and if not what would be a way to do it? Is there some special syntax I can use to get it done. Thanks in advance, Quote Link to comment https://forums.phpfreaks.com/topic/172673-solved-why-does-this-not-work/ Share on other sites More sharing options...
ignace Posted September 1, 2009 Share Posted September 1, 2009 case 'fight_view1': $fight = 'fight1'; include('fight_view.php'); break; In fight_view.php $fight = isset($fight) ? $fight : $_GET['fight']; Quote Link to comment https://forums.phpfreaks.com/topic/172673-solved-why-does-this-not-work/#findComment-910164 Share on other sites More sharing options...
Kryllster Posted September 1, 2009 Author Share Posted September 1, 2009 Thank You it works! Quote Link to comment https://forums.phpfreaks.com/topic/172673-solved-why-does-this-not-work/#findComment-910180 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.