I'm building a script and new to this. I'm looking for the easiest way to hide an API
For example it could work like this - but it's not secure
1. User submits a form POST
2. A script processes the form
3. The form variables become part of a url along with the api and open in a browser window.
This works but then anyone can see the api which needs to be kept private for this script.
Is there a simple way to run the url in a php script without running it in a window.
Like some function that says "open this url with these variables but don't send it to the browser"
Any ideas here would be greatly appreciated.
Thanks