Hi David
Hope you're well. I use the following simple jump script to redirect links which works in php4, however, it does no appear to work in php5.
Main data file contains:
<?
$go = $_GET['go'];
if ($go == "1") {$link = "index.php";}
header("Location: $link");
exit();
?>
Redirect called by:
jump.php?go=1
Do you know where the problem is please?
Regards
Bernard
Hi David
I've not looked at the source, however, what it does is just displays the content of the data file and doesn't redirect, whereas using php4 it does redirect.
Regards
Bernard
Hi Bernard,
It's not simply a case of your new installation not being configured for the short-hand PHP delimiters is it? At the very top of your script, instead of:
<?
Try using:
<?php
Cheers,
David.
Hi Bernard,
Syntactically it looks fine - have you tried using "View > Source" to see if an error message has been generated which is preventing the header() function from working...?
Cheers,
David.