Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
436 B
2
Indexable
Never
<!DOCTYPE html>

<html lang="en"> <head>

<script>

function displaysum() {

var request = new XMLHttpRequest();

request.open("POST", "adders.php");

var myForm = document.getElementById("myForm");

var formData = new FormData(myForm);

request.onreadystatechange- function() { if(this.readyState=4&& this.status == 200) {

document.getElementsByName("three")[0].value=this.responseText;

request.send(formData);

}

</script>

</head>