php-integration #21
@ -13,7 +13,7 @@
|
|||||||
require './php/submitIssue.php';
|
require './php/submitIssue.php';
|
||||||
|
|
||||||
// Set initial values
|
// Set initial values
|
||||||
$subject = $detail = "";
|
$title = $detail = "";
|
||||||
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
||||||
|
|
||||||
// If the page has been POSTed to then run this:
|
// If the page has been POSTed to then run this:
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
|
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
|
||||||
Subject:
|
Subject:
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="subject" value="<?php echo $subject;?>">
|
<input type="text" name="subject" value="<?php echo $title;?>">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
Details:
|
Details:
|
||||||
|
@ -15,7 +15,7 @@ function sendInput($title,$body) {
|
|||||||
// Prepare the request
|
// Prepare the request
|
||||||
$rawData = array(
|
$rawData = array(
|
||||||
'body' => $body,
|
'body' => $body,
|
||||||
'title' => $subject
|
'title' => $title
|
||||||
);
|
);
|
||||||
|
|
||||||
$preparedData = json_encode($rawData);
|
$preparedData = json_encode($rawData);
|
||||||
|
Reference in New Issue
Block a user