-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbla.php
More file actions
18 lines (18 loc) · 747 Bytes
/
bla.php
File metadata and controls
18 lines (18 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
#print_r($_POST);
echo '<h1>Verschiedene Eingabetypen</h1>';
echo '<form method="post">';
echo '1. Text ';
echo '<input type="text" name="text" value="Test"><br>';
echo '2.Radio Button ';
echo '
<input type="radio" id="female" name="geschlecht" value="Weiblich" checked><label for="female"> Weiblich</label>
<input type="radio" id="male" name="geschlecht" value="Männlich"><label for="male"> Männlich</label><br>';
echo '<input type="submit" name="abschicken" value="Abschicken" class="buttonSubmit">';
echo '</form>';
if (isset($_POST)){
echo '<hr>';
echo '<a>Sie haben 1. input type="text": </a>'.$_POST['text'].'<a> eingegeben</a><br>';
echo '<a>2. Bei Radio Button: </a>'.$_POST['geschlecht'].'<a> eingegeben.</a>';
}
?>