Code: Select all
if (upload()) redirect();
else print('error');I was thinking about just including the page I want to see, but then the addy would be goofy, which would cause other problems.
Ideas?
Moderator: General Moderators
Code: Select all
if (upload()) redirect();
else print('error');Code: Select all
<?php
/* do php up here */
?>
<html>
<!-- HTML down here -->
</html>Code: Select all
<?php
$text = (isset($_GET['text'])) ? htmlentities($_GET['text']) : '[blank]';
?>
<html>
<body>
<h3>The value of $text is:</h3>
<?php echo $text; ?>
</body>
</html>Code: Select all
<?php
ob_start();
/* rest of page */
ob_end_flush();
?>Code: Select all
<?php
echo 'Hello world!';
header('Location: http://www.google.co.uk');
exit();
?>Code: Select all
<?php
ob_start();
echo 'Hello world!';
header('Location: http://www.google.co.uk');
exit();
ob_end_flush();
?>