HTML5
Этот тег создает пары ключей.
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
</
body
<?
php
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$a = (string)trim(htmlspecialchars($_POST['a'], ENT_QUOTES));
if($_REQUEST['clear']) {
$
a
null
;
}
?>
form
action
"<?php echo $_SERVER["
PHP_SELF"]; ?>" method="post">
fieldset
legend
>This data will send into a server</
input
type
"text"
name
"a"
value="<?php echo $a; ?>" />
label
>Enter a text</
br
keygen
"keygen1"
>Encryption</
"submit"
"perform"
value
"Perform"
"clear"
" Clear "
>Reading data from a server</
if($_SERVER['REQUEST_METHOD']=='POST' && $_REQUEST['perform'] && !$_REQUEST['clear']) {
echo $a;
else {
echo null;