Jump to content

PHP problem giving me issues....


gnawz

Recommended Posts

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?

 

 

Link to comment
https://forums.phpfreaks.com/topic/146787-php-problem-giving-me-issues/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.