Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 4:19 PM, tedd wrote: At 9:33 PM +0100 7/8/08, Stut wrote: I've only had a quick look but as far as I can see it's keeping the vars in a form, the form posts to index.php so I'm guessing index.php simply includes the script you specify on the form. Not what I would call "

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 9:33 PM +0100 7/8/08, Stut wrote: I've only had a quick look but as far as I can see it's keeping the vars in a form, the form posts to index.php so I'm guessing index.php simply includes the script you specify on the form. Not what I would call "pass[ing] variables between scripts" but th

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 1:32 PM -0400 7/8/08, tedd wrote: Actually, you don't need to use sessions, post, nor get to pass variables between scripts. Here's an example: http://www.webbytedd.com/bb/tedd/index.php Of course, the smart ones on this list will figure it out pretty quickly. So, this code in the HTML

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Jim McIntyre
At 1:32 PM -0400 7/8/08, tedd wrote: Actually, you don't need to use sessions, post, nor get to pass variables between scripts. Here's an example: http://www.webbytedd.com/bb/tedd/index.php Of course, the smart ones on this list will figure it out pretty quickly. So, this code in the HTML

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Shawn McKenzie
Stut wrote: On 8 Jul 2008, at 21:09, Philip Thompson wrote: On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I de

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Stut
On 8 Jul 2008, at 21:09, Philip Thompson wrote: On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED] > wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the si

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 2:42 PM, Thiago H. Pojda wrote: On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED] > wrote: On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: In the end I decided the simplest way of coding the functionality was to do

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Thiago H. Pojda
On Tue, Jul 8, 2008 at 4:11 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 8, 2008, at 12:32 PM, tedd wrote: > > At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: >> >>> In the end I decided the simplest way of coding the functionality was to >>> do >>> something similar to what Eric said,

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
On Jul 8, 2008, at 12:32 PM, tedd wrote: At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: 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 click

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread tedd
At 4:18 PM +0100 7/8/08, Mayer, Jonathan wrote: 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

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
t > Subject: Re: [PHP] Keeping POST values when paging > > > On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >> On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> > wrote: >> > >> > Just a comment... the submit button/session technique

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 08 July 2008 17:01 To: Eric Butera Cc: Mayer, Jonathan; Bastien Koert; Philip Thompson; PHP-General List Subject: Re: [PHP] Keeping POST values when paging On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 12:00 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >> On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> > >> > Just a comment... the submit button/session technique sucks with respect >> >

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: > On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > Just a comment... the submit button/session technique sucks with respect > > to passing along links to people. I would suggest scrapping that > > approach and

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 16:18 +0100, Mayer, Jonathan wrote: >> 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 ha

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Robert Cummings
On Tue, 2008-07-08 at 16:18 +0100, Mayer, Jonathan wrote: > 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

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
on Cc: PHP-General List Subject: Re: [PHP] Keeping POST values when paging On Tue, Jul 8, 2008 at 9:29 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 7, 2008, at 12:46 PM, tedd wrote: > > At 2:51 PM +0100 7/7/08, Mayer, Jonathan wrote: >> >>> Hiya all, >&g

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Bastien Koert
On Tue, Jul 8, 2008 at 9:29 AM, Philip Thompson <[EMAIL PROTECTED]> 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 lar

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Philip Thompson
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

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread tedd
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 l

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread Per Jessen
Mayer, Jonathan wrote: > Is there some way of forcing the page to remember and reload the POST > variables when clicking "next"? Or, if that's difficult, can anyone > suggest a good way of addressing this problem without too much > recoding? I'm sure there must be a neater way of doing it then sim

RE: [PHP] Keeping POST values when paging

2008-07-07 Thread Mayer, Jonathan
Thanks Wolf and Eric, I shall experiment with the two options you have suggested. Cheers, Jon. -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: 07 July 2008 14:58 To: Mayer, Jonathan Cc: 'php-general@lists.php.net' Subject: Re: [PHP] Keeping POST values w

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread Wolf
"Mayer 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

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 9:51 AM, Mayer, Jonathan <[EMAIL PROTECTED]> 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 fro

[PHP] Keeping POST values when paging

2008-07-07 Thread Mayer, Jonathan
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,