I have just added a mini cart view to our website, and I have run into a problem. There is a "more info"/"less info" link in it. For compatibility reasons, I did it purely in php.
The problem is this: some of the pages on the site use $_GET and/or $_POST data. I'm trying to find a way to be able to pass the $_GET data along, and am considering simply hiding the minicart view on pages with $_POST data.
I have already gotten to the point of re-creating the exact web address for the page the user is on, but I haven't gotten through obtaining the $_GET data. I think I could re-create it, but I really don't want to do it with a static solution, such as checking for exact variables. I think the reasons for not wanting that are fairly obvious.
So, I guess the questions I have are as follows:
Am I headed in the right direction with this?
If you think I'm just way off in left field with my concept design, what angle should I aproach the issue from?
If I'm headed in the right direction with finding a way to return the full, exact url, how can I do this?
If I'm headed in the right direction with re-creating the $_GET and/or $_POST data, how do I retreive the variable names (eg. if the url ends in ?testval=1 how do I get the name "testval")
I've spent several days now looking for hints in the php documentation, searching the internet, searching this forum (faq/threads), and experimenting. If you can address any of the questions I have or at least point me in the right direction, I would appreciate it greatly.
The problem is this: some of the pages on the site use $_GET and/or $_POST data. I'm trying to find a way to be able to pass the $_GET data along, and am considering simply hiding the minicart view on pages with $_POST data.
I have already gotten to the point of re-creating the exact web address for the page the user is on, but I haven't gotten through obtaining the $_GET data. I think I could re-create it, but I really don't want to do it with a static solution, such as checking for exact variables. I think the reasons for not wanting that are fairly obvious.
So, I guess the questions I have are as follows:
Am I headed in the right direction with this?
If you think I'm just way off in left field with my concept design, what angle should I aproach the issue from?
If I'm headed in the right direction with finding a way to return the full, exact url, how can I do this?
If I'm headed in the right direction with re-creating the $_GET and/or $_POST data, how do I retreive the variable names (eg. if the url ends in ?testval=1 how do I get the name "testval")
I've spent several days now looking for hints in the php documentation, searching the internet, searching this forum (faq/threads), and experimenting. If you can address any of the questions I have or at least point me in the right direction, I would appreciate it greatly.