esercizi su form, php

This commit is contained in:
2014-11-07 21:34:49 +01:00
parent 3924e6bf32
commit 8f485b73b3
9 changed files with 510 additions and 0 deletions

77
php10.php Normal file
View File

@@ -0,0 +1,77 @@
<?php
require_once ('functions.php');
include('header.html');
///////////////////////////
echo<<<_css
<style>
input:valid {
background-color:green;
}
input:invalid {
background-color:red;
}
input:in-range {
font-size:20pt;
}
input:required {
color:red;
}
input:optional {
color:blue;
}
input:active {
outline: 5px black solid;
}
input:focus {
outline: 5px yellow solid;
}
#a[placeholder="mario"][required]{
outline: 5px red solid;
}
</style>
_css;
echo "\n";
///////////////////////////
echo<<<_html
<a href="php9.php"><img src="sky.jpg" usemap="#mario" alt="image" /></a>
<map name="mario">
<area href="a.html" shape="rect" coords="0,0,100,100" alt="1 area"/>
<area href="b.html" shape="rect" coords="100,0,200,100" alt="2 area"/>
<area href="def.html" shape="default" alt="other"/>
</map>
_html;
include ('footer.html');
?>