PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
do not put these in quotes document.form1.elements['first'].value these are variables and not strings but the rest in quotes. also i think you should use DOM instead of refering to form objects. just give each feild an id attribute and define it in JS
var fnameField= document.getElementById('first');
var lnameField= document.getElementById('last');
var passwordField= document.getElementById('pass');
var password2Field= document.getElementById('pass2')
var emailField= document.getElementById('mail');
var email2Field= document.getElementById('mail2');
var operatingField= document.getElementById('os');
var agreeField= document.getElementById('agree');
XMLHttpRequestObject.send("fname="+fnameField.value&"lname=" +lnameField.value&"password=" +passwordField.value&"password2=" +password2Field.value&"email=" +emailField.value&"email2=" +email2Field.value&"operating=" +agreeField.value);
Last edited by Benjamin on Sun May 10, 2009 12:40 pm, edited 1 time in total.
Reason:Changed code type from text to javascript.
actualy its gonna take a lotta time and you know this isnt free. what i can tell you however is the fact that your ajax script is completly wrong, the method you are sending your vars could not be more wrong. also if your testing that with firefox, it would not work. i suggest you look at some tutorials in sending ajax scripts