Startseite und Galerie API hinzugefügt

This commit is contained in:
R40fendt
2025-04-17 11:37:05 +02:00
parent 5bd5fcb02c
commit f9d9a944cf
8 changed files with 80 additions and 0 deletions

13
submit_form.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
header("Access-Control-Allow-Origin: *");
include("../mysqlverbinden.php");
if(!isset($_GET["formid"])) die("GET formid fehlt");
$formid=$_GET["formid"];
if(!isset($_GET["value1"])) die("GET value1 fehlt");
$value1=$_GET["value1"];
if(!isset($_GET["value2"])) die("GET value2 fehlt");
$value2=$_GET["value2"];
mysqli_execute_query($db_id,"INSERT INTO `ritzenbergen-formular-ergebnisse` (`formularid`, `labelone`, `labeltwo`) VALUES (?,?,?);",[$formid,$value1,$value2]);