I'm trying to send data to an external API, the problem is that when I open the console in chrome or inspect any element, the values hidden of the form that are the API keys are shown, so try this with Curl :
<?php
$ch = curl_init('https://apiurl.com/');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "ApiKey=$ak&merchantId=$mi&accountId=$ac");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,false);
$respuesta = curl_exec ($ch);
curl_close ($ch);
?>
Now, I have 3 questions:
<input type="submit"> or a <button> ?