esercizi su form, php
This commit is contained in:
75
php5.php
Normal file
75
php5.php
Normal 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');
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user