title: Sending multiple parameters to javascript from a HTML form button
body: <p>Ok so i have a form that has three input boxes, at the moment they're text, but they will be changed to password. When the submit button is pressed i want the for to send the form data to an Ajax script. </p>
  
  <p>I have this working with just one parameter the button looks like this:</p>
  
  <pre><code>&lt;input type="submit" name="submit" value="Submit" 
      onClick="return pass(this.form.oldPass.value;"&gt;
  </code></pre>
  
  <p>Now i've tried adding the 'this.form' part three times because thats how many parameters the function would take but it just doesn't seem to do anything:</p>
  
  <pre><code>&lt;input type="submit" name="submit" value="Submit" 
      onClick="return pass(this.form.oldPass.value,
                           this.form.newPass.value, 
                           this.form.newPassCheck);"&gt;
  </code></pre>
  
  <p>Is this the right way to go about passing form data to a script? is there another way around it or am i just doing something wrong here?</p>
  
  <p>thanks for the help, if you need anymore code i'll add it.</p>