Vous n'êtes pas identifié(e).
Pages : 1
<?php
//get values out of the form and urlencode them
if (strlen($_GET['sms_from'])>0 &&
strlen($_GET['sms_message'])>0)
{
$to = $_GET['sms_to'];
$from = urlencode($_GET['sms_from']);
$message= urlencode($_GET['sms_message']);
//make a GET-request to SMSPM.com
$answer=
file_get_contents("http://panel.smspm.com/gateway/52248aec022c6d53eabe30/api.v1/send?phone=$to
&sender=$from&message=$message&output=json
");
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="responsiveform.css">
<link rel="stylesheet" media="screen and (max-width: 1200px) and (min-width: 601px)" href="responsiveform1.css" />
<link rel="stylesheet" media="screen and (max-width: 600px) and (min-width: 351px)" href="responsiveform2.css" />
<link rel="stylesheet" media="screen and (max-width: 350px)" href="responsiveform3.css" />
</head>
<body>
<div id="envelope">
<header>
<h2>Mon site web pour envoyer des SMS . </h2>
</header>
<hr>
<form action="index.php" method="post">
<label>Numero qui Envoi </label>
<input type="text" name="sms_from" placeholder="ex : +243991234567" min="11" max="13" required width="100px;">
<label> Numero qui recoit </label>
<input type="text" name="sms_to" placeholder="ex : +243991234567" min="11" required max="13">
<label> Message </label>
<textarea name="sms_message" rows="10" cols="15" placeholder="Message"></textarea>
<input type="submit" value="Envoyer le Message" id="submit">
</form>
<header>
<h3>Fait par <a href="">Normalis consulting</a> </h3>
</header>
</div>
</body>
</html>
ce code est-il bon? merci d'avance!!!
Pages : 1