I have been given a 3rd party API link i.e http://their_website.com/index.php?key=sdffhdhjjkll&name=fred bloggs.
They are telling me that I should not make the key code visible. I have tried the following
1: To find a way to hide the address bar in a browser from within php/html
2. I have created a form with hidden variables and used the GET method and then called the page, but the parameters are added to the URL and are visible
3. I have created a form with hidden variables and used the POST method and then called the page, but the called page returns an error “Missing Key”
As I do not have access to the 3rd party webpage, I do not know how they are reading the parameters.
Can anybody help with this and is there a plug-in or php code that may help?
They do, but it shows the construction of the call in the url, but not how to hide it in the browser. I know that you can hide your own browser address bar, but I can’t find a way of forcing it to be hidden from within php.
Why would you call an API in the browser anyway? You have to call it from within your PHP script or you can’t handle any response, and as the credentials are not given by the user (what would make it obsolete to hide), you store them in some config.
The 3party have provided an http://api.their-website.com/index.php… which brings up a certificate ready to print, so I have put that link into a button for the user to click.
What sort of php script are you suggesting?