I want to create a webpage, that allows user to input values, then send to 192.168.1.101:8081 via GET request.
$(document).ready(function()
{
$(".sendButton").click(function()
{
var a = $(this).attr('value');
var b = $(this).attr('value');
$.get("http://192.168.1.101:8081/", {valueA=a}, "&" , {valueB=b});
});
});
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="/action_page.php">
<fieldset>
<legend><b><font size="4">Reference Points:</font></b></legend>
Value A:<br>
<input type="text" value="">
<br>
<legend><b><font size="4">Reference Points:</font></b></legend>
Value B:<br>
<input type="text" value="">
</fieldset>
<br>
<br><input type="submit" class="sendButton" value=" SEND "/b>
</form>
</body>
</html>
I know there're syntax errors. Because I know nothing about html and javascript, and only basic of php, so please excuse me.
So, when the "SEND" button is clicked, the 192.168.1.101:8081 will receive a the values from the inputs in the webpage. How? please help. Thanks