diff --git a/php10.php b/php10.php new file mode 100644 index 0000000..6a7ea36 --- /dev/null +++ b/php10.php @@ -0,0 +1,77 @@ + + + +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; +} + + + +_css; +echo "\n"; +/////////////////////////// + + + + +echo<<<_html + + + +image + + + +1 area +2 area +other + + + +_html; + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/php5.php b/php5.php new file mode 100644 index 0000000..2c641c7 --- /dev/null +++ b/php5.php @@ -0,0 +1,75 @@ + + + +select { + width:100px; +} + + + +_css; +echo "\n"; +/////////////////////////// + + +if ($_GET == null){ + + + echo<<<_html + + +
+ + + + + + + + + +
+ + + +_html; + +}else { + +print_r($_GET); + + + + + +} + + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/php6.php b/php6.php new file mode 100644 index 0000000..85ce152 --- /dev/null +++ b/php6.php @@ -0,0 +1,57 @@ + + + +select { + width:100px; +} + + + +_css; +echo "\n"; +/////////////////////////// + + + +if (!isset($_GET['attributes']) ){ + +echo <<<_html +
+Select your personality attributes:
+ Perky
+ Morose
+ Thinking
+ Feeling
+Spend-thrift
+ Shopper
+
+ +
+ +_html; + +}else{ + +print_r($_GET); + +} + + + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/php7.php b/php7.php new file mode 100644 index 0000000..1607dbb --- /dev/null +++ b/php7.php @@ -0,0 +1,51 @@ + + + +select { + width:100px; +} + + + +_css; +echo "\n"; +/////////////////////////// + + +if (count($_FILES)==0){ + + +echo "
"; + +echo ""; + +echo ""; + +echo "
"; + +}else { + + + $file = $_FILES['gino']['name']; + move_uploaded_file($_FILES['gino']['tmp_name'], $_SERVER["DOCUMENT_ROOT"]."uploaded/$file"); + +} + + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/php8.php b/php8.php new file mode 100644 index 0000000..404605f --- /dev/null +++ b/php8.php @@ -0,0 +1,85 @@ + + + +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; +} + + + +_css; +echo "\n"; +/////////////////////////// + + + + + +echo<<<_html + +
+ + Nome +
+ cNome +
+ Eta +
+ Eta +
+ + + +
+ + + + + +_html; + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/php9.php b/php9.php new file mode 100644 index 0000000..3897f73 --- /dev/null +++ b/php9.php @@ -0,0 +1,77 @@ + + + +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; +} + + + +_css; +echo "\n"; +/////////////////////////// + + + +print_r($_GET); + +foreach ($_GET as $key => $value) { + $a= explode(",",$key); +} +echo $a[0];echo "
";echo $a[1];echo "
"; + +echo<<<_html + + + +image + + + +_html; + + + + +include ('footer.html'); + + + + + ?> \ No newline at end of file diff --git a/sky.jpg b/sky.jpg new file mode 100644 index 0000000..efea466 Binary files /dev/null and b/sky.jpg differ diff --git a/sticky.php b/sticky.php new file mode 100644 index 0000000..f06eb34 --- /dev/null +++ b/sticky.php @@ -0,0 +1,62 @@ + +Pizzeria on-line + + +label per le checkbox +// tutte le opzioni presenti in $query saranno marcate come checked + +function make_checkboxes ($name, $query, $options) { + foreach ($options as $value => $label) { + // printf(' $label
\n"; + } +} + +// la lista di valori e label per le caselle di spunta +$tipi_condimento = array( + 'peperoni' => 'Peperoni a listarelle', + 'funghi' => 'Funghi trifolati', + 'salame' => 'Salame piccante', + 'ricotta' => 'Ricotta al forno', + 'salsiccia' => 'Salsiccia sbriciolata', + 'broccoli' => 'Broccoli saltati in padella', + 'pomodorini' => 'Pomodorini a dadini', + 'rughetta' => 'Rughetta selvatica' +); + +?> + +
+Scegli i gusti della tua pizza:
+ +
+ +
+ +0) { + if (count($scelte)>0) { + echo "Hai scelto una pizza con i seguenti condimenti:
"; + foreach ($scelte as $condimento) + echo $tipi_condimento[$condimento], "
"; + } +?> + + + diff --git a/test_5.html b/test_5.html new file mode 100644 index 0000000..c5991fc --- /dev/null +++ b/test_5.html @@ -0,0 +1,26 @@ + + + +Example + + + + + +
+

Things I like

+ +
+ + + \ No newline at end of file