php-integration #21

Closed
fred.boniface wants to merge 146 commits from php-integration into main
Showing only changes of commit 93f3939428 - Show all commits

View File

@ -17,7 +17,7 @@
<body> <body>
<?php <?php
// define form variables and set to empty values (or to the UA) // Define form variables and set to empty values (or to the UA)
$subject = $detail = ""; $subject = $detail = "";
$ua_str = $_SERVER["HTTP_USER_AGENT"]; $ua_str = $_SERVER["HTTP_USER_AGENT"];
@ -25,6 +25,7 @@
$giteaResponse = ""; $giteaResponse = "";
$issueData = ""; $issueData = "";
// If the page is loading after submission then run this:
if ($_SERVER["REQUEST_METHOD"] == "POST" ) { if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
$subject = validate($_POST["subject"]); $subject = validate($_POST["subject"]);
$detail = validate($_POST["detail"]); $detail = validate($_POST["detail"]);