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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.