-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
56 lines (42 loc) · 843 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
require_once(dirname(__FILE__) . '/function.php');
$credits = getCredits();
?>
<!DOCTYPE html>
<html>
<head>
<title>Envoie sms</title>
</head>
<body>
<h1>
Envoyez un sms !
</h1>
<div>
<form action="sms_sender.php" method="POST">
<?php
if (isset($_GET['message']))
{
if($_GET['message'] == 'error-fill')
{
echo "Vous devez saisir un numéro et un mot de passe";
}
}
?>
<div>
Nombre de crédits: <?= $credits ?>
</div>
<label>Numéro du destinataire</label>
<br>
<input type="text" name="destinataire" />
<br>
<br>
<label>Contenu du message</label>
<br>
<textarea name="contenu"></textarea>
<br>
<br>
<input type="submit" value="valider" name="action"/>
</form>
</div>
</body>
</html>