Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. I need to submit a form that updates database and also auto fills an html contract
  2. form name="multipage" id="multipage"method="GET" action="addaccount.html.php">
  3.    input name="submit" type="submit" id="submit" value="<?php htmlout($button);" ?
  4.    class="submitbutton" alt="Submit" title="Submit"
  5.    SubmitHandler: function() {
  6.    var form = $('#multipage');
  7.    var datastring = $("form").serialize();
  8.     $.ajax({
  9.     type: 'POST',
  10.     url: '?addform',
  11.     data: datastring,
  12.     cache: false,
  13.     success: function(data) {
  14.     var datastringget = $("form").serialize();
  15.     $.ajax({
  16.     data: datastring,
  17.     success: function(data) {
  18.     alert(datastring);
  19.     }
  20.     });
  21.     return false;
  22.     }
  23.     });
  24.     }
  25.     });