note 127100 deleted from function.fread by cmb
| From: | cmb@php.net | Date: | Mon, 16 May 2022 07:44:25 +0000 |
| Subject: | note 127100 deleted from function.fread by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218472@lists.php.net to get a copy of this message | ||
Note Submitter: wvs at mail dot de
----
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<h1>Immobilienportal</h1>
<h2>Angebot aufgeben</h2>
Die <b style="background-color:#cccccc;">grau hinterlegten</b> Felder
müssen ausgefüllt werden.
<form method="POST">
<fieldset style="width:750px">
<legend>Persönliche Daten</legend>
<div style="background-color:#cccccc;">
<label for="nachname">Nachname:
<input type="text" name="nachname" required="required">
</label>
</div><br>
<div style="background-color:#cccccc;">
<label for="vorname">Vorname:
<input type="text" name="vorname" required="required">
</label>
</div><br>
<div style="background-color:#cccccc;">
<label for="email">Email:
<input type="email" name="email"
required="required"><br>
</label>
</div><br>
<label for="auswahl">Ich verkaufe:
<input type="radio" name="auswahl" value="P">
<label for="prv">Privat</label>
<input type="radio" name="auswahl" value="M">
<label for="makler">als Makler</label>
</label>
<br><br>
<label for="ustid">Umsatzsteuerid DE
<input type="number" name="ustid" >
</label>
</fieldset>
<fieldset style="width:750px">
<legend>Objektangaben</legend>
<label for="immoart">Immobilienart:
<select name="immoart" size="5">
<option value="0">keine Angabe</option>
<option value="1">Einfamilienhaus</option>
<option value="2">Mehrfamilienhaus</option>
<option value="3">Reihenhaus</option>
<option value="4">Doppelhaushälfte</option>
<option value="5">Eigentumswohnung</option>
</select>
</label>
<br><br>
<div style="background-color:#cccccc;">
<label for"plz">PLZ: </label>
<input type="number" name="plz" required="required" >
<label for"ort">Ort: </label>
<input type="text" name="ort" required="required">
</div><br>
</fieldset>
<fieldset style="width:750px">
<legend>Sonstiges</legend>
<label for="text">Ihre Nachricht (optional):</label>
<textarea id="text" name="text" cols="50"
rows="5"></textarea>
<br>
<div style="background-color:#cccccc;">
<input type="checkbox"name="agb" value="ja" >
<label for="agb">Datenschutzbest. akzeptieren</label><br>
</div><br>
</fieldset>
<input type="submit" name="senden">
<br><br>
<?php
if(ISSET($_POST["senden"])) {
$zufallsnummer=$uid = strtoupper(bin2hex(random_bytes(3)));
$MoP=$_POST["auswahl"];
$immoart=$_POST["immoart"];
$plz=$_POST["plz"];
if(($_POST["agb"]) =="ja") {
echo "Sie haben die Datenschutzbestimmungen Akzeptiert.<br>";
}
else {
echo "Sie haben die Datenschutzbestimmungen nicht Akzeptiert.<br>";
}
echo "Ihre Angebots-ID: $MoP-$immoart-$plz-$zufallsnummer";
}
?>