first commit

This commit is contained in:
2026-04-02 15:13:15 +05:30
commit 24b759888a
6 changed files with 251 additions and 0 deletions

23
app/save.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$number = $_POST['number'];
if (empty($number)) {
echo "Invalid input";
exit;
}
$file = 'data.csv';
$handle = fopen($file, 'a');
// Save ONLY number (no timestamp)
fputcsv($handle, [$number]);
fclose($handle);
echo "Saved!";
}
?>