PHP Redirect Code – with javascript

Ever needed a redirect function that would know when to use javascript of php. Well the wait is over *crowd goes wild*…. sorry here it is

To use the function simply call it like so:
$variables = array('firstvar' => $firstVar,
'secondvar' => "hello world");
REDIRECT("newPage.php?currentVar=123", $variables);

and here it is again if you missed it

and voila!

If you liked it let me know please.

I think there is still an issue with if the variable already exists in the target, i just haven’t had the time to work on it.
Maybe i need to follow my tips in my other post – 4 Tips for working from home successfully

You can leave a response, or trackback from your own site.

Leave a Reply