HTML <keygen> element
<form action="keygen.php" method=post>
User: <input type="text" name="user"><br>
Keygen: <keygen name="keyg"><br>
<input type=submit value="Submit Keygen">
</form>
<br><br>
<?PHP
if ($user != "")
echo "user: $user<br>keygen: $keyg";
?>
PHP code at the beginning of this file:
<?PHP
$user="";
$keyg="";
if (isset($_POST['user']))
{
$user=$_POST['user'];
}
if (isset($_POST['keyg']))
{
$keyg=$_POST['keyg'];
}
?>
Specific attributes of <keygen> tag:
Attribute | Description |
autofocus | automatically focus on the tag when pages loads |
challenge | the value will be challenged when submitted |
disabled | disable the tag |
form | form name |
keytype | key type difinition. RSA: public key encrption algorithm |
name | name of the tag |