note 127067 added to tutorial.forms
| From: | ott at web dot de | Date: | Sun, 15 May 2022 16:08:10 +0000 |
| Subject: | note 127067 added to tutorial.forms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218403@lists.php.net to get a copy of this message | ||
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1>Fortbildungsportal</h1>
<form method="POST">
<fieldset>
<legend>Persöhnliche Daten</legend>
<div>
<label for="name">Name:
<input type="text" name="name"><br><br>
</label>
</div>
<div>
<label for="vorname">Vorname:
<input type="text" name="vorname"><br><br>
</label>
</div>
<label for="personalnummer">Personalnummer<b style="color:red;
">*</b>:
<input type="number" name="personalnummer"
required="required"><br><br>
</label>
<div>
</div>
<label for="abt">Abteilungszugehörigkeit:
<select id="abt" name="abt">
<option value="EK">Einkauf</option>
<option value="TE">Technik</option>
<option value="EW">Entwicklung</option>
<option value="VW">Verwaltung</option>
</select>
</label>
</fieldset>
<fieldset>
<legend>Fortbildungsangaben</legend>
<label for="fortbildungsid">Fortbildungs-ID<b style="color:red;
">*</b>:
<input type="number" name="fortbildungsid"
required="required"><br><br>
</label>
<label for="datum">Datum:
<input type="date" name="datum"><br><br>
</label>
Verpflegungspauschale beantragen:
<input type="radio" name="verpflegungspauschale"
value="ja">
<label for="verpflegungspauschale">Ja</label>
<input type="radio" name="verpflegungspauschale"
value="nein">
<label for="verpflegungspauschale">Nein</label><br>
</fieldset>
<input type="submit" name="button">
</form>
<?php
if(ISSET($_POST["button"])) {
$abt=$_POST["abt"];
$zufall=rand(10, 99);
$pnummer=substr($_POST["personalnummer"], -3);
$verpfl= $_POST["verpflegungspauschale"];
echo "#$abt#$pnummer#$zufall<br>";
if($verpfl=="ja") {
echo "Verpflegungspauschale wurde Beantragt.";
} else {
echo "Verpflegungspauschale wurde nicht Beantragt.";
$verpfl=="nein";
}
}
?>
</body>
</html>
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.47 (proxied: 2a02:8071:885:8701:3d7d:4ba2:1534:419a)
----
Manual Page -- https://php.net/manual/en/tutorial.forms.php
Edit -- https://main.php.net/note/edit/127067
Del: integrated -- https://main.php.net/note/delete/127067/integrated
Del: useless -- https://main.php.net/note/delete/127067/useless
Del: bad code -- https://main.php.net/note/delete/127067/bad+code
Del: spam -- https://main.php.net/note/delete/127067/spam
Del: non-english -- https://main.php.net/note/delete/127067/non-english
Del: in docs -- https://main.php.net/note/delete/127067/in+docs
Del: other reasons-- https://main.php.net/note/delete/127067
Reject -- https://main.php.net/note/reject/127067
Search -- https://main.php.net/manage/user-notes.php