Jump to content

[SOLVED] Keeping POST data from searches


c_shelswell

Recommended Posts

Hi,

 

I've got a form on a page which searches and displays a load of records. A user can then view a record which navigates them away from that page. Is there a way to keep the post data from the previous page so i can add a back button? I thought of storing it all in session vars but this sounds like it could be a bit of a pain in the ar$e.

 

Does anyone know of any better ideas?

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/158374-solved-keeping-post-data-from-searches/
Share on other sites

Ok another question. If i change the form to $_GET is there an easy way to add that data back to a link like a back button? as the below isn't going to work.

 

<?php

<a href='<?php echo $_SERVER['PHP_SELF']; ?>?data=<?php print_r ($_GET); ?>'>Back</a>


?>

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.