HTML5
Этот тег определяет пункты в выпадающем списке.
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>Name Page</
</
body
<?
php
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$select = $_POST['select'];
if($_REQUEST['clear']) {
$
select
null
;
}
?>
form
action
"<?php echo $_SERVER["
PHP_SELF"]; ?>" method="post">
fieldset
legend
>This data will send into a server</
label
>Select the text</
name
"select"
option
value
"Hello World!"
>Hello World!</
"To be or not to be?"
>To be or not to be?</
"Привет Мир!"
>Привет Мир!</
input
type
"submit"
"perform"
"Perform"
"clear"
" Clear "
>Reading data from a server</
if($_SERVER['REQUEST_METHOD']=='POST' && $_REQUEST['perform'] && !$_REQUEST['clear']) {
echo $select, '<br /';
else {
echo null;