Have a question that seem basic, but can't find command for it.
I want to load another page when 2 variables are the same for instance:
if ( $main_job == $placed_job) { // load another web page }
Anyone know the command for that?
if($bleh == $foo) { header('Location: newpage.html'); }
just a reminder, the line :
header('Location: newpage.html');
must be at the top of your page or the first output statment in your php code. Otherwise, something like header had already been sent error will occur.
Simonsky
or just
if(x=3) { include('page.php'); }