Doppelte Formularlogik: mailto-Link blockiert PHP-Serverlogik #57
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Das Kontaktformular hat eine doppelte Formularlogik:
mail()inHomeController.phpmailto:-Link via JavaScriptDer JS-Submit-Handler in
haus-schleusingen.js(Zeile ~130) rufte.preventDefault()auf und oeffnet stattdessen den E-Mail-Client. Dadurch wird die PHP-Serverlogik niemals erreicht.Betroffene Dateien
public/js/haus-schleusingen.js(Zeile ~130):e.preventDefault()+mailto:-Aufrufapp/controllers/HomeController.php: Serverseitige Formularverarbeitung (wird nie erreicht)Loesung
Akzeptanzkriterien
mailto:-Link mehr im Kontaktformulare.preventDefault()mehr im Formular-Submit-Handler