php - $_REQUEST works on one page but not another -


okay folks question pretty basic.

here basics.

my site on godaddy shared hosting.

i have pagination script works perfect on 1 page.

http://subdomain.mysite.com/category.php

in different part of site;

http://www.mysite.com/admin/page.php

i error line:

$page= $_request['page'];

i don't put rest of script, because identical on both pages exception of query variables.

on second page notice: undefined index: page .... error.

what missing?

is there work around?

you're trying param not passing server.

i guess pass pagination params in query, failing on "page 1" still don't pass anything.

try with:

$page = 1; if (isset($_request['page']) {     $page = (int)$_request['page']; } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -