Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-sorting data on results page

Status
Not open for further replies.

spencern

Programmer
Joined
Dec 20, 2001
Messages
78
Location
US
Hi,
I'm using UD to make a commenting system that allows teachers to login and leave comments about specific students. On the page that allows people to view the comments, I want to be able to sort the comments by week or day. (week of 02/17/02-02/23/02) I wanted this to be in a dropdown box at the top of the page so that users could select a week, press submit, and have the entire page resorted with only the comments that were made for that week.

If you look at and click on the log link, there is something very similar to this at the top of the page. You can select new criteria and it will resort the data based on your entries.

If anyone has any ideas about how I could get this done, has any tutorial links, or any code that I could look at, I would greatly appreciate it.

Thanks,
Spencer
 
Basically the page needs to display a recordset that is only populated with the relevant details. If you attach the selection criterea to the url you can easily set the default to display all records.
Then as you redirect to the same page if there is a value in the URL then the select statement takes its value from there otherwise it uses the default value of all.
Live long and make your kids suffer..
 
Thanks,
I can't figure out how to make the form send the data to a second page with the data in the URL string. If I can see an example or a tutorial, I'm sure I could figure it out from there.
I've made a two page thing where the first page has the list box at the top and the second one is supposed to sort on what is entered, but I can't figure out how to get it to work.
If anyone has a quick explanation about how to get this done, I would greatly appreciate it.
Thanks,
Spencer
 
rtfm

look under

passing parameters to another page

in the help section Live long and make your kids suffer..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top