cosmic_sniper Posted April 3, 2012 Share Posted April 3, 2012 Hi there, I am new to PHP and trying to put my learning together as I progress. Here's the problem: I would like to open HTML file after a certain condition is met. I tried to fopen() but it gave an empty page. Here's the code: <?php $shape = $_POST['shape']; if($shape=='Triangle') { fopen('ogc_show_triangle.php', 'r'); } else { echo "Select a shape."; } ?> Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/260293-opening-another-page/ Share on other sites More sharing options...
NLT Posted April 3, 2012 Share Posted April 3, 2012 You could try include() Link to comment https://forums.phpfreaks.com/topic/260293-opening-another-page/#findComment-1334142 Share on other sites More sharing options...
cosmic_sniper Posted April 3, 2012 Author Share Posted April 3, 2012 That made my day! Thanks Link to comment https://forums.phpfreaks.com/topic/260293-opening-another-page/#findComment-1334146 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.