Fix plan form: add AJAX submit handler binding

- Add onsubmit handler to plan form
- Form now uses JavaScript fetch instead of standard POST
- Fixes white page issue with JSON response
This commit is contained in:
Kirik
2025-10-27 15:42:48 +01:00
parent 776dbb5e76
commit f902109b04
+1 -1
View File
@@ -172,7 +172,7 @@ disableComments = true
</script> </script>
<form class="travel-form" action="/forms/send_plan.php" method="POST"> <form class="travel-form" action="/forms/send_plan.php" method="POST" onsubmit="return handleFormSubmit(event)">
<div class="form-group"> <div class="form-group">
<label for="name">Имя *</label> <label for="name">Имя *</label>
<input type="text" id="name" name="name" placeholder="Введите Ваше имя" required> <input type="text" id="name" name="name" placeholder="Введите Ваше имя" required>