Jump to content

In need of help once again.


XoSilenceoX

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.