<h2>Go DB Hammer</h2>
<script type="text/javascript">
-//function doPost {
+function doDBSetPost() {
$(function() {
var frm = $(document.dbsetsform);
var dat = JSON.stringify(frm.serializeArray());
}
);
});
-//}
+}
function bollocks() {
$.getJSON("http://localhost:22222/json", function(json) {
<tr><td>Data Multiplier</td><td><input type="text" name="dbtype"></td></tr>
<tr><td>Number of Clients</td><td><input type="text" name="dbtype"></td></tr>
</table>
-<input type="submit" name="Go" value="Go">
+<input type="submit" name="Go" value="Go" onClick="doDBSetPost(); return false">
</form>
</div>
<div class="setupbody">I am a setup body</div>
$(".loadingbody").toggle(true);
</script>
</body>
-</html>
\ No newline at end of file
+</html>
fmt.Printf("i got a get\n");
}
if(req.Method == "POST") {
- fmt.Printf("i got a post...\n");
+ lp := make([]byte, 1048576);
+ req.Body.Read(lp);
+ fmt.Printf("i got a post...%s\n", (string)(lp));
http.Redirect(c, "/", 301);
}