Hi Jennifer, > I have a page with four ways to display data stored in a database. For > example: > Display by State Submit > Display by Country Submit > Display by Date Submit > Display All Submit > > The word submit is supposed to represent a submit button. Each > of these is in their own form on one page. Why so complicated?
> I have the information displaying from the database, but it is > there all of the time, for each display option, as soon > as the page is loaded. I would do one of the following: 1. either display the information you want displayed, sorted by say "date", or any of the other parameters, being the default sort. List the info in a table with as headers the words "Country", "State", "Date". These words being hyperlinks to say "thispage.php?sort=..." where the value after sort determines how the info will be (re)sorted upon redisplaying the page (the most common and intuitive way to do this). Or... 2. create a group of radio buttons with only one submit button in one form, instead of three forms. For instace in case you object to using GET to send a parameter in the request. Apart from that don't forget to include the option to paginate results in case the list of results may get too long to confortably get displayed in one page. (a "LIMIT START,OFFSET" extension of the query used to pull the results from the DB will do the trick). Marc
