2021-01-22 20:58:46 +00:00
|
|
|
|
2021-01-23 16:26:46 +00:00
|
|
|
<form method="post">
|
2021-01-22 20:58:46 +00:00
|
|
|
<label for="domain">Domaine</label><br>
|
|
|
|
<input placeholder="niver.atope.art" id="domain" name="domain" type="text"/><br>
|
|
|
|
<input type="submit"/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($_POST['domain'])) {
|
|
|
|
if (filter_var($_POST['domain'], FILTER_VALIDATE_DOMAIN)) {
|
|
|
|
echo htmlspecialchars(filter_var($_POST['domain'], FILTER_VALIDATE_DOMAIN));
|
|
|
|
} else {
|
|
|
|
echo "<br>Pas un domaine !!<br>";
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<br>Formulaire traité !!";
|
|
|
|
} else {
|
|
|
|
echo "<br>Rien n'a été reçu lors du dernière chargement";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|