PDA

View Full Version : Retaining values submitted on a form


TalkVirginia
06-16-2011, 10:38 PM
I'm trying to create a hack that will show a list of members based on certain form entered criteria and I would like to be able to retain the criteria from page to page on the resulting form if there is more than one page. How can I do this in vb4? So far I can pass the values and get the resultset and get the first page, however when I click buttons to go to the next page I lose my criteria values. Would anyone have a short code example on how to do this or point me in the right direction?

Thanks,
Jim

HMBeaty
06-16-2011, 10:41 PM
Have a look at the code used in my staff application (https://vborg.vbsupport.ru/showthread.php?t=261978) modification. Pretty sure that's set up either close or exactly how you are looking for

TalkVirginia
06-16-2011, 10:53 PM
Have a look at the code used in my staff application (https://vborg.vbsupport.ru/showthread.php?t=261978) modification. Pretty sure that's set up either close or exactly how you are looking for

Very cool! thanks a bunch! :)

HMBeaty
06-16-2011, 10:56 PM
No problem. Let me know if you need any additional help. I'm almost always available via instant messenger as well

TalkVirginia
06-16-2011, 11:09 PM
No problem. Let me know if you need any additional help. I'm almost always available via instant messenger as well

Ok. Actually I just checked it out. This hack/addon I'm doing will be solely in the admincp. I've attached the screens I have so far. When I click on the buttons at the bottom of the result screen to go to the next page, I lose the criteria for my query for the next page and it displays all users instead.

HMBeaty
06-16-2011, 11:19 PM
Hmm.....as far as retaining the values in the AdminCP, I'm not sure how to go about doing that. Templates though, that's a different story lol