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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.