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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.