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
| <?php
$cryptinstall="./crypt/cryptographp.fct.php";
include $cryptinstall;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
<script language="javascript">
function controle()
{
if (document.form.code.value=='')
{
alert("Veuillez recopier le code !");
document.form.code.focus();
return false;
}
else
{
// if (chk_crypt(document.form.code.value))
// return true;
// else {
// alert("Le code que vous avez recopié n'est pas validé, veuillez le retaper");
// document.form.code.focus(); } }
}
</script>
<body>
<form name="form" action="test.php" method="post" onsubmit="controle()">
<table>
<tr><td><?php dsp_crypt(0,1); ?></td></tr>
<tr><td>Recopier le code : <input type="text" name="code" /></td></tr>
<tr><td><input type="submit" name="submit" value="Envoyer" /></td></tr>
</table>
</body>
</html> |
Partager