joecooper Posted January 12, 2008 Share Posted January 12, 2008 Hi, its been about 2 years since i last visited here. i went off php for a while but now have a site to code... i have frame.php with basic template. in the middle where i want the site content. i need links from menu like frame.php?section=members , frame.php?section=register etc. and depending on whats on the section=... it will include that page in the frame.. (its been so long! :'( ) Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/ Share on other sites More sharing options...
Daukan Posted January 12, 2008 Share Posted January 12, 2008 Something like this maybe <?php switch($_GET['section']) { case 'register': $page = 'register.php'; break; case 'login': $page = 'login.php'; break; default: $page = 'main.php'; } ?> <iframe src="<?=$page;?>"></iframe> Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437271 Share on other sites More sharing options...
joecooper Posted January 12, 2008 Author Share Posted January 12, 2008 thanks thats perfect. Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437297 Share on other sites More sharing options...
twostars Posted January 13, 2008 Share Posted January 13, 2008 thanks thats perfect. Please remember to mark your topic as "Solved" with the button on your screen. Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437778 Share on other sites More sharing options...
Hypnos Posted January 13, 2008 Share Posted January 13, 2008 Remember that you can use TARGET= in HTML anchor tags to dictate what frame a link loads in. Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437785 Share on other sites More sharing options...
cooldude832 Posted January 13, 2008 Share Posted January 13, 2008 Remember that you can use TARGET= in HTML anchor tags to dictate what frame a link loads in. which is only valid in a frameset and or transitional doc type if you care about those Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437788 Share on other sites More sharing options...
Hypnos Posted January 13, 2008 Share Posted January 13, 2008 Remember that you can use TARGET= in HTML anchor tags to dictate what frame a link loads in. which is only valid in a frameset and or transitional doc type if you care about those Well, IFRAME isn't supported in strict either. So, he should be using one of those anyway. Quote Link to comment https://forums.phpfreaks.com/topic/85682-coming-back-to-php-need-simple-help/#findComment-437792 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.