- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I get a callback from a checkout server (Mal’s E-commerce) which includes GET data (used to calculate shipping) in the URL.
I need to create an ‘intermediary’ script that reads, checks and POSTs this data on to the checkout page on my server that will be presented to the visitor. I’ve read of some ‘onload’ JavaScript ways to do this, but I wouldn’t be happy with a ‘no Javascript’ fail.
Current Process:
1. Checkout server redirects the client to a /shipping/ script on my server, including query string data.
Required Behaviour:
2. Checkout server redirects to a script on my server which checks and converts the query string data into POST (form) data which is the ‘submitted’ to the /shipping/ script.
Or maybe I’m overcomplicating it? The aim is for the client not to see all the data in the query string when reaching the /shipping/ page on our server. I’m fairly certain that I can’t ask the other server to POST instead BTW.
Thanks guys. :D
Sounds good, if you could elaborate on the concept slightly for me. :D
Do you mean use a script to put the query string into a session, then redirect to the shipping calculator page and pull the data back from the session variable?
Ah great thanks. Now to code it. :D
Any tips for parsing the values back out of the string – “units=0&value=36.55…”?
Sorry, yes PHP.
Ah of course! I had put the whole query string into a session variable. Thanks again. :D