Fixed early use of variable
This commit is contained in:
parent
b5da264ce6
commit
cb66028b77
@ -21,6 +21,9 @@
|
|||||||
$subject = $detail = "";
|
$subject = $detail = "";
|
||||||
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
||||||
|
|
||||||
|
// Define response variable as blank before POSTing
|
||||||
|
$giteaResponse = "";
|
||||||
|
|
||||||
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"]);
|
||||||
@ -92,7 +95,7 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p>You have submitted:</p>
|
<p>You have submitted:</p>
|
||||||
<p><?php echo $giteaResponse;?>
|
<p><?php echo $giteaResponse;}?>
|
||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer>
|
<footer>
|
||||||
|
Reference in New Issue
Block a user