This commit is contained in:
kali
2024-03-18 17:52:16 +03:00
parent a73c5e8170
commit bd456e6331
15 changed files with 532 additions and 23 deletions

21
checkPOST.php Normal file
View File

@ -0,0 +1,21 @@
<?php
$formData = [
"phone" => $_POST['phone'],
"email" => $_POST['email'],
"name" => $_POST['name'],
"lastname" => $_POST['lastname'],
"button" => $_POST['Button'],
"radio1" => $_POST['radio1'],
"textarea" => $_POST['textarea'],
"select" => $_POST['select'],
"one" => $_POST['one'],
"two" => $_POST['two'],
"radio2" => $_POST['radio2'],
"select2" => $_POST['select2']
];
$jsonData = json_encode($formData);
$file = "form.json";
file_put_contents($file, $jsonData);