XoSilenceoX Posted March 14, 2008 Share Posted March 14, 2008 OK so I got this form going, & it checks out and everything. The problem im running into now is that when I submit the form. Its not passing any of the inputs through to the server for processing. I tried to see if it was passing the variables by using <?php echo $_POST['variable_name']; ?> but its returning nothing. heres the form coding: <form name="register" action="javascript: ajax('content','register/handler.php');" onsubmit="return validate(this);"> Heres the ajax script that I am using. var http = false; if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } function ajax(Varea,Vlink) { http.abort(); document.getElementById(Varea).innerHTML = '<img src="images/loading.gif">'; http.open("GET", Vlink, true); http.onreadystatechange=function() {if(http.readyState == 4) { document.getElementById(Varea).innerHTML = http.responseText; } } http.send(null); } Im not that good with ajax, ive slightly gotten better only been playing with it for 3 days now. So any help would be greatly appreciated. Even an ajax script strickly for submitting forms is acceptable. Link to comment https://forums.phpfreaks.com/topic/96103-in-need-of-help-once-again/ Share on other sites More sharing options...
XoSilenceoX Posted March 14, 2008 Author Share Posted March 14, 2008 I found the fix. http://www.ibm.com/developerworks/library/x-ajaxxml9/#download Thats a excellent site for future reference on how to post for websites with ajax. Link to comment https://forums.phpfreaks.com/topic/96103-in-need-of-help-once-again/#findComment-492004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.