im trying to get a script to work that says
if the $_SERVER['REQUEST_URI' has a question mark in it do nothing
else
echo java script that redirects
so far all i got is the
<?php
if ($_SERVER['REQUEST_URI'] > "?") {
echo '';
}else{
echo '
<script type="text/javascript" src="redirect.js"></script>';
}
?>
but im sure thats wrong cause nothing is working
anyone have an idea?
fixed it before i got a response
below is the code that works
<?php
$addy = $_SERVER['REQUEST_URI'];
if (strpos($addy,"?")) {
echo '';
} else {
echo '
<script type="text/javascript" src="redirect.js"></script>';
}
?>