var data={ userName: $('#userName').val(), email: $('#email').val(),
and
$.ajax({ type: "POST", url: "http://rt.ja.com/includes/register.php?submit=1", data: data success: function(html) { //alert(html); $('#userError').html(html); $("#userError").html(userChar); $("#userError").html(userTaken); } });
You do not need to worry about anything else. jquery will handle serialization, etc., you can also add a submit submit = 1 query string parameter to the data json object.
Baz1nga Sep 15 '11 at 5:13 2011-09-15 05:13
source share