There is a code
<?php $xml = "<?xml version='1.0' encoding='UTF-8'?> <data> <login>************</login> <password>************</password> <action>send</action> <text>TEXT</text> <to number='88888888888'> </to> </data>"; $address = "https://lcab.smsint.ru/API/XML/send.php"; $ch = curl_init($address); curl_setopt($ch, CURLOPT_URL, $address); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); $result = curl_exec($ch); echo $result; curl_close($ch); ?>
he sends automatic sms via server
at this point the phone is already substituted 88888888888
and there is an entry form
<form action="" method="post"> <input id="name" name="number" placeholder="ТЕЛ" type="text"> <input name="submit" type="submit" value="Войти"> <span><?php echo $error; ?></span> </form>
it is necessary to substitute the value name = "number" more precisely $ _POST ['number']
Instead of the phone 88888888888.
How to do it?