Hello all
Can anyone tell me how come the $php_self above doesn't seem to work on Netscape 4.08?
the filename is not being displayed in the url, do I need an echo or something?
It works fine on ALL other browsers.
<?php is declared on the top of the page, so it's not needed in that statement itself.
Also, in my server logs, I get a undefined variable $php_self.
When I put "<a href=\$PHP_SELF? instead, I mean, when I add an \ slash, it puts the $PHP_SELF physical word in the query string.
Can anyone tell me how I add $PHP_SELF in the two links below?
function navImageLink($ageId,$priceId,$pieceId,$awardWinner,$newProduct,$image,$page) {
$link = "<a href=\"$PHP_SELF?cboAge=$ageId&dir=products&cboPrix=$priceId&cboPiece=$pieceId&AW=$awardWinner&New=$newProduct&iPage=$page class=MyNavBar\">";
return $link. "<img src=../../../../admin/img_site/client/$image border=0 ></a>";
}
function navLink($ageId,$priceId,$pieceId,$awardWinner,$newProduct,$curPage,$page) {
$link = "<a href=\"$PHP_SELF?cboAge=$ageId&dir=products&cboPrix=$priceId&cboPiece=$pieceId&AW=$awardWinner&New=$newProduct&iPage=$page class=MyNavBar\">";
if( $page == $curPage ) {
$page = "[ $page ]";
}
return $link . " ".$page . "</a> ";
}
Thanks