mirror of
https://github.com/FlyInTheBox/31TSAI.git
synced 2024-12-22 22:37:00 +01:00
l
This commit is contained in:
parent
36f99f4f55
commit
d4568721a5
2 changed files with 35 additions and 1 deletions
|
@ -31,10 +31,11 @@
|
|||
<legend>Roczniki</legend>
|
||||
<?PHP
|
||||
for ($i=2010;$i<=2025;$i++){
|
||||
echo "<input type='radio' name='rok' id='$i' value='$i'>$i<br>";
|
||||
echo "<label><input type='radio' name='rok' id='$i' value='$i'>$i</label><br>";
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
<br>
|
||||
<select>
|
||||
<?PHP
|
||||
$miesiace = array(
|
||||
|
@ -52,8 +53,13 @@
|
|||
12=>"Grudzień"
|
||||
);
|
||||
foreach ($miesiace as $key => $value) {
|
||||
if ($key != date("m")) {
|
||||
echo '<option value="'.$value.'">'.$value.'</option>';
|
||||
}
|
||||
else {
|
||||
echo '<option selected value="'.$value.'">'.$value.'</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</html>
|
28
Zadanie 22.02.2023/index.php
Normal file
28
Zadanie 22.02.2023/index.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="index.php" method="post">
|
||||
<fieldset>
|
||||
<legend>lorem 50</legend>
|
||||
<?PHP
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
echo '<h4>Oto wpisany tekst:</h4>'.'<p style="color: red; font-style: italic">'.$_POST["tekst"].'</p>';
|
||||
}
|
||||
else {
|
||||
echo '<textarea name="tekst" cols="50" rows="5">';
|
||||
echo "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab commodi facilis iste itaque nesciunt provident recusandae sapiente similique. A asperiores consequuntur corporis eaque illo in maxime molestiae quam qui reprehenderit repudiandae rerum sunt tempora vitae, voluptatum? Aliquid at quas quidem voluptates voluptatum. Delectus doloremque iure magnam nemo odit quisquam voluptates.";
|
||||
echo '</textarea><br><input type="submit">';
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
<br>
|
||||
</form>
|
||||
</body>
|
||||
|
Loading…
Reference in a new issue