Offers update. Fields

This commit is contained in:
2026-03-23 10:25:04 +01:00
parent fe0a36f9aa
commit 5793cb156f
3 changed files with 16 additions and 8 deletions

View File

@@ -533,6 +533,7 @@ function handleContactForm($data) {
'name' => sanitizeInput($data['name']),
'organisation' => sanitizeInput($data['organisation'] ?? ''),
'contact' => sanitizeInput($data['contact']),
'phone' => sanitizeInput($data['phone'] ?? ''),
'service' => sanitizeInput($data['service'] ?? ''),
'budget' => sanitizeInput($data['budget'] ?? ''),
'description' => sanitizeInput($data['description'] ?? ''),

View File

@@ -283,6 +283,7 @@ document.addEventListener("DOMContentLoaded", function() {
name: getValue('name'),
organisation: getValue('organisation'),
contact: getValue('contact'),
phone: getValue('phone'),
service: getValue('service'),
budget: getValue('budget'),
description: getValue('description')

View File

@@ -239,15 +239,21 @@
<input type="text" id="name" name="name" required placeholder="Ihr vollständiger Name">
</div>
<div class="form-group">
<label for="organisation">Organisation</label>
<input type="text" id="organisation" name="organisation" placeholder="Firmenname (optional)">
<label for="organisation">Organisation *</label>
<input type="text" id="organisation" name="organisation" required placeholder="Firmenname">
</div>
</div>
<!-- Contact -->
<!-- Email + Phone -->
<div class="form-row">
<div class="form-group">
<label for="contact">E-Mail oder Telefonnummer *</label>
<input type="text" id="contact" name="contact" required placeholder="email@beispiel.de oder +49 000 0000000">
<label for="contact">E-Mail *</label>
<input type="email" id="contact" name="contact" required placeholder="email@beispiel.de">
</div>
<div class="form-group">
<label for="phone">Telefonnummer</label>
<input type="tel" id="phone" name="phone" placeholder="+49 000 0000000">
</div>
</div>
<!-- Service + Budget -->
@@ -270,8 +276,8 @@
<!-- Description -->
<div class="form-group">
<label for="description">Beschreibung *</label>
<textarea id="description" name="description" required placeholder="Beschreiben Sie Ihr Projekt oder Ihre Anfrage..."></textarea>
<label for="description">Beschreibung</label>
<textarea id="description" name="description" placeholder="Beschreiben Sie Ihr Projekt oder Ihre Anfrage..."></textarea>
</div>
<button type="submit" class="submit-btn">Anfrage senden</button>