gnawz Posted February 24, 2009 Share Posted February 24, 2009 I have a program that stores alot and categorises parfumes iie LADIES,GENTS, DEOS, etc I want to edit some parfume details... 1. I type LADIES in the text field on my search page and search 2. It displays all the products in that category in a tabulated paginated table. I navigate to the next page of results URL http://localhost/cstock/admin/stock/searchcategory.php?page=2&search=LADIES 3. I select the item I want to edit, it by clicking on the edit link. It displays the modify page with all fields. URL like http://localhost/cstock/admin/stock/searchcategory.php?page=2&search=LADIES 4. I edit and click submit. I want the user to be redirected to the search results page, while still maintaining the search criterion. The redirect to go back to... http://localhost/cstock/admin/stock/searchcategory.php?page=2&search=LADIES ....instead of the page with the search form (step 1) as I would not like a user to search again since they have more product details to modify within the same search results How do I do this guys? Quote Link to comment Share on other sites More sharing options...
gnawz Posted February 25, 2009 Author Share Posted February 25, 2009 Any one to help me here? Please give me an idea... Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted February 25, 2009 Share Posted February 25, 2009 You could store the query in a $_SESSION var... check if it is set when you load the page, and rerun it... like you said though, if it is paginated... You may need to store more than just the query. For instance, current page depending on how your pagination works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.