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 57 58 59 60 61 62 63 64
|
<!DOCTYPE html PUBLIC "-W3C//DTD//XHTML 1.0 Strict//EN" "<a href="http://www.w3.org./TR/xhtml/DTD/xhtml1.strict.dtd" target="_blank">http://www.w3.org./TR/xhtml/DTD/xhtml1.strict.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>" xml: lang="fr" lang="fr">
<head>
<title>TP bien!</title>
<meta http-equiv="Content-Type" content="text/html; charset= iso-8859-1" />
</head>
<body>
<?php
echo "Merci d'avoir choisi Vroum-Vroum !<br />
Choisissez votre carburant: <br />
Gazole, SuperSP ou GPL ?<br />";
?>
<form method="post" action="test.php">
<p> <input type="text" name="demande" /><br />
<input type="submit" value="Valider" />
</p>
</form>
<?php
if (isset($_POST['demande']))
{
$reponse = $_POST['demande'];
echo "Entrer votre n° de carte bleue:<br />";
echo "<br />"
?>
<form method="post" action="test.php">
<p> <input type="text" name="demande" /><br />
<input type="submit" value="Valider" />
</p>
</form>
<?php
while ($reponse == NULL)
{
echo "Entrer votre n° de carte bleue:<br />";
echo "<br />";
?>
<form method="post" action="test.php">
<p> <input type="text" name="nombre" /><br />
<input type="submit" value="Valider" />
</p>
</form>
<?php
}
$nombres = $_POST['nombre'];
echo $nombres;
echo $reponse;
}
?>
</body>
</html> |