Jump to content

Opening Another Page


cosmic_sniper

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.