-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathr_submit.php
More file actions
37 lines (32 loc) · 877 Bytes
/
Copy pathr_submit.php
File metadata and controls
37 lines (32 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<title>Eclipse</title>
<head>
<link href="./style/eclipse_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function submitR(f) {
var xmlhttp;
var x=f.inputbox.value;
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if(xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("result").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","calculate.php?q="+x,true);
xmlhttp.send();
}
</script>
</head>
<body>
<form name="rcode" method="GET">
Enter your code in the box:<br>
<textarea cols="60" rows="10" name="inputbox" value=""></textarea>
<input type="button" name="submit" value="submit" onClick="submitR(this.form)">
</form>
<div id="result"></div>
</body>
</html>