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:
+1
-1
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user