I am still working on the redirection issue (As noted in a previous thread here).

I think I may have found a nice solution via a video tutorial on the subject.

When running this test script, it should simply load google.com; The result though is a "Page not found" screen.

Please look at my code.

<?php
ob_start();
?>

<h1>ob redirect test</h1>
Hi

<?php
$redirect_page = 'https://www.google.com';
$redirect = true;

if ($redirect = true) {
    header('Location:$redirect_page');
}

ob_end_flush();
?>

Thank you in advance for your assistance!
Matthew

cereal:

Works perfectly (And I learned more about proper syntax)!

You're awesome.

Thank you for your help, Friend.

Matthew

This will work, too:
header('Location:'.$redirect_page.'');

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.