update 1
This commit is contained in:
21
checkPOST.php
Normal file
21
checkPOST.php
Normal 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);
|
Reference in New Issue
Block a user