Hi:
I'm using cURL to pass info to an API.
The info is gathered through a form.
Some of the form fields must contain and pass slahes and dots to the API.
For example: 172.198.2.2 and http://www.google.com
When I display the results on the page before submitting the info, everytihng looks OK. However when I submit data, it seems any spaces are shopped and the slashes and dots are causing problems.
I think I need to pass the values through a PHP function, but I just can't figure out which one!
Not sure if it'd be htmlspecialchars or htmlentities or another function.
Thank you for your help in advance 🙂