page will not submit on remote host/ php pager problem

Posted on 2006-04-18
Last Modified: 2009-07-29

My pager does everything but when I hit any of the links for the pages it doesn't show any results.

It can be seen here (although the page doesn't seen to submit on the remote host). Any ideas why?? I have registered globals turned off on the local host and set the variables with lines like.

if(!isset($_POST['area'])){ $_POST['area']='a'; $area = $_POST['area'];}
 echo "area is $area";
 if(!isset($_POST['rowsPerPage'])){ $_POST['rowsPerPage']=10; $rowsPerPage = $_POST['rowsPerPage'];}


Question by:roscoeh23
    LVL 8

    Expert Comment

    I suppose those lines should be

    if(!isset($_POST['area'])){ $_POST['area']='a'; } $area = $_POST['area'];
     echo "area is $area";


     if(!isset($_POST['rowsPerPage'])){ $_POST['rowsPerPage']=10;}  $rowsPerPage = $_POST['rowsPerPage'];

    ? With register_globals turned off $area is undefined by default even if $_POST['area'] is defined.
    LVL 3

    Accepted Solution

    I am not getting your question.  Are you getting an error message of some sort?  

    Might want to check $PHP_SELF;.  You say Reg Globals is on?  

    ADOdb has a nice pager that works.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Generating Excel in php 5 31
    generate a dynamic mysql query 2 24
    PHP foreach DB query 4 23
    Image not there 4 11
    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now