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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-Posting Form Data

Status
Not open for further replies.

atmcquillen

Technical User
Jun 19, 2001
8
GB
Hi

I have a Form, which when filled in is used to perform a search on an Access database.

The clever stuff actually happens on the results page, which gets the info it needs using 'Post' from the form. All works fine - this isn't an ASP question.

However, if I try to split the results up, displaying 30 per page using some querystring parameters in the URL, I get the first 30 OK, but then try to reload the page with different parameters to see the next 30 I get an error.

I think my error is caused by the fact that reloading the second page does not resubmit the data Posted from the form (as would happen if you simply refreshed page with the original parameters).

Does anyone know how I could 'Re-post' this data every time I reloaded the page? Does what I am trying to do make sense?

Thanks in advance

Andy
 
i think you should read this thread : thread232-109750
don't be afraid, it's in the coldfusion forum, but the last answer is pure javascript. The question was almost the same as yours (the guy was querying a db, and wanted to display x results per page, but couldn't reconnect to the server to change pages, so he wanted a real client side solution) and the solution i gave is generic enough
also, the same guy has another post in the same forum on "how to store the result of what i've read in the db in a javascript array" that you should read - it's way more of a colfusion problem, but you'll have to fill an array to make everything work ... i'm sorry i didn't note the thread number
anyway, let me know if this has been helpfull to you - or not ------
please review FAQ183-874 - this will help you to get the best out of tt
[ "you" is not someone in particular - don't take it too personnal ]
 
Thanks for your help

I was a bit off topic after all -

I solved the problem by passing the SQL query between the pages

AM
 
you mean, you're re-querying at each new page, or you found a way to pass the result of the query along with your params ? ------
please review FAQ183-874 - this will help you to get the best out of tt
[ "you" is not someone in particular - don't take it too personnal ]
 
Am re-querying with each new page - the other way would be more efficient (?)

will give it a shot if I get time...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top