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

75
php5.php Normal file
View File

@@ -0,0 +1,75 @@
<?php
require_once ('functions.php');
include('header.html');
///////////////////////////
echo<<<_css
<style>
select {
width:100px;
}
</style>
_css;
echo "\n";
///////////////////////////
if ($_GET == null){
echo<<<_html
<form method="get">
<select name="ale[]" size="5">
<optgroup label="art">
<option value="a">asdsa</option>
</optgroup>
<optgroup label="a1t">
<option value="a" >ai</option>
<option value="a" >ai</option>
</optgroup>
</select>
<textarea cols="20" rows="5" name="story" wrap="soft">yeah</textarea>
<input type="submit"/>
</form>
_html;
}else {
print_r($_GET);
}
include ('footer.html');
?>