summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ws2a/bugview.html6
-rw-r--r--ws2a/bugview.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/ws2a/bugview.html b/ws2a/bugview.html
index 9653a63..786df6c 100644
--- a/ws2a/bugview.html
+++ b/ws2a/bugview.html
@@ -73,12 +73,12 @@
<form class="form-signin" action="/cgi-bin/bugcomment.cgi">
<h2 class="form-signin-heading">Leave a comment</h2>
<label for="inputName" class="sr-only">Name</label>
- <input id="inputName" class="form-control" placeholder="Screen Name" required="" autofocus="" type="text">
+ <input id="inputName" name="name" class="form-control" placeholder="Screen Name" required="" autofocus="" type="text">
<label for="inputID" class="sr-only">Identifier</label>
- <input id="inputID" class="form-control" placeholder="Identifier" required="" type="password">
+ <input id="inputID" name="id" class="form-control" placeholder="Identifier" required="" type="password">
<textarea name="comment" rows="5" cols="50"></textarea>
<div id="captcha"></div>
- <input id="solvecaptcha" class="form-control" placeholder="captcha" type="text">
+ <input id="solvecaptcha" name="captcha" class="form-control" placeholder="captcha" type="text">
<button class="btn btn-lg btn-primary btn-block" type="Post">Post</button>
</form>
</div>
diff --git a/ws2a/bugview.js b/ws2a/bugview.js
index f1896ff..3d695d6 100644
--- a/ws2a/bugview.js
+++ b/ws2a/bugview.js
@@ -75,7 +75,7 @@ function loadLastBugs() {
captcha.onreadystatechange = function() {
if (captcha.readyState == 4 && captcha.status == 200) {
var id = captcha.response;
- document.getElementById("captcha").innerHTML = "<img src=\"./captchas/" + id + ".png\">";
+ document.getElementById("captcha").innerHTML = "<img src=\"./captchas/" + id + ".png\"><input type=\"hidden\" name=\"bugid\" value=\"" + bugnum + ">";
}
}
captcha.open("GET", "/cgi-bin/gencaptcha.cgi",true);