I got this variable:
$page = (int) $_REQUEST['page'];
I need some actions that will base on the above request. This will be used to the pagination script.
I mean:
if $page is 0 , then script will redirect the user to the another subpage.
The trick is that I need to redirect user ONLY in case if in his URL &page=0 is specified, otherwise, it won’t do anything.
I’ve tried this:
if( $page == 0 ) {
header("Location; xxxx");
}
but it does redirect the user even if he did not specified (or POST the page).
So , how can I do that?
This checks if it is actually set by user, and it is
0Do 3:
===to check if value is actually the number 0