Yes javascript or ajax would be my choice Here is the JS used to process the login form. I am not a professional developer but know enough to clobber together some fairly decent sites. I know there is a way because at one time e was being tr and tansferred and echo $_POST['e'] was working. THNX
<script>
function emptyElement(x){
_(x).innerHTML = "";
}
function login(){
var e = _("email").value;
var p = _("password").value;
if(e == "" || p == ""){
_("status").innerHTML = "Fill out all of the form data";
} else {
_("loginbtn").style.display = "none";
_("status").innerHTML = 'please wait ...';
var ajax = ajaxObj("POST", "logProc.php");
ajax.onreadystatechange = function() {
if(ajaxReturn(ajax) == true) {
if(ajax.responseText != "logged"){
_("status").innerHTML = 'error';
_("status").innerHTML = ajax.responseText;
_("loginbtn").style.display = "block";
} else {
_("status").innerHTML = ajax.responseText;
window.location = "profile.php";
}
}
}
ajax.send("e="+e+"&p="+p);
}
}
</script>
Acrobat JavaScript has almost nothing to do with Browser JavaScript, except for the core language. So you're script above is not useful for submitting data from a PDF. Please look over the Acrobat DC SDK Documentation