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
php9.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";
///////////////////////////
print_r($_GET);
foreach ($_GET as $key => $value) {
$a= explode(",",$key);
}
echo $a[0];echo "<br>";echo $a[1];echo "<br>";
echo<<<_html
<a href="php9.php"><img src="sky.jpg" ismap alt="image" /></a>
_html;
include ('footer.html');
?>