RE: Keeping POST values when paging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yup, some good work there Tedd!

In the end I decided the simplest way of coding the functionality was to do
something similar to what Eric said, and have some extra submit buttons in
the form, called Next, Previous and Jump. When clicked, they each submitted
the form again with a different flag set. Along with a session variable
storing the "current" page, I was able to code a reasonably neat solution
deciding which results to show without having to rewrite any sections of my
code. Because these submit buttons are tied to a form at the top of the
page, this has limited me to only having the navigational buttons at the top
of the results table rather than at the bottom too, but that is perfectly
fine in my situation.

Thanks all for your assistance,
Jon.

-----Original Message-----
From: Bastien Koert [mailto:phpster@xxxxxxxxx]
Sent: 08 July 2008 15:08
To: Philip Thompson
Cc: PHP-General List
Subject: Re:  Keeping POST values when paging


On Tue, Jul 8, 2008 at 9:29 AM, Philip Thompson <philthathril@xxxxxxxxx>
wrote:

> On Jul 7, 2008, at 12:46 PM, tedd wrote:
>
>  At 2:51 PM +0100 7/7/08, Mayer, Jonathan wrote:
>>
>>> Hiya all,
>>>
>>> I have coded a PHP site on an intranet which forms a MySQL query based
on
>>> multiple inputs on a large form. The form results are POSTed back to
>>> itself,
>>> and query is formed, and the results are returned from the database and
>>> echoed.
>>>
>>> I am looking to set up a basic paging system (back/next, jump to page 3,
>>> etc) in order to limit results for efficiency.
>>>
>>
>> Jon:
>>
>> Here's my version of paging:
>>
>> http://webbytedd.com/bbb/paging/
>>
>> And here's some different styles:
>>
>> http://webbytedd.com/ccc/pagination/
>>
>> Here's an example of paging using ajax -- however, it's not as simple as
>> the others:
>>
>> http://www.webbytedd.com/b1/photo-retouch/
>>
>
> tedd...... this is your best work so far! So maybe I'm a bit biased b/c
> there's beautiful women on it. But hey, what can I say?!
>
> ~Phil
>
>
>  Cheers,
>>
>> tedd
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
very nice images

-- 

Bastien

Cat, the other other white meat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux