www.webdeveloper.com
Results 1 to 2 of 2

Thread: POST and Query String together:

  1. #1
    Join Date
    May 2005
    Posts
    212

    POST and Query String together:

    I have a form that posts data filter criteria back to the same page, showing the form again with a set of filtered data.

    At that point I want to be able to sort the table by the column headers. I know I can do that with Javascript, but I use alternate row colouring and that looks messed up with a Javascript sort.

    Is it possible, when clicking a link in the column header, to reload the page with the query string supplying the sort criteria but with the filter data also being re-POSTed back to the page?

    I know I can set up the sort order with links in my column headers, but am not sure if I can use POSTed parameters and a Query String at the same time.

    If so, how can I re-POST the data?

    Grateful for any help.

  2. #2
    Join Date
    Oct 2005
    Posts
    843
    The easiest way might be to use sessions. Just simply when they submit the initial form submit that data into session variables and simply pull the data from there when needed.

    Cause im certain just using a link you wouldnt be able to resend post data and only send get. The only way to repost would most likely be using a form with hidden fields and a submit button but wouldnt look the prettiest most likely.

    So yea, try sessions unless someone else has a better suggestion.
    Welsh

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles