Re: Perplexing Problem

From: Date: Thu, 07 Sep 2000 01:55:16 +0000
Subject: Re: Perplexing Problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-15633@lists.php.net to get a copy of this message
On Thu, 07 Sep 2000, James Atkinson wrote: > Greetings List, > > I've been charged with an interesting task here at work and I need some > suggestions on how I would go about acomplishing what I have to do. > > I'm building a form that searchs a database for a listing of memebers. That by > itself is easy. The search results must be listed on a page with no more then > 10 results per page up to 100 results. That is also easy. This much I have > accomplished. > > However, in each set of 10 the user can select any number of the search > results. The problem I"m having is how to retain the data from 1 page of > results to the next. Here's an example > > User does a search. Gets 30 results, thus has 3 pages of data. The user selects > 2 results from the first page, then goes to the second pages and selects 2 > results. He then wants to go back and select another from the first page. How > do I keep track of what the user has selected? > > The tool for selection is a simple checkbox, the 'Next Page'/'Previouse > Page' > are just links (<a href = etc etc). Is there a way I can make the links work > like a form submit button? I'm really stuck here, I'm hoping someone can help > me out... > > Thanks :) > > > -- > James Atkinson Could you perhaps use images as form action buttons, and then pass the data you need to keep as hidden fields? Or perhaps sessions? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#15633) next »