.serialize and $.post issue [SOLVED]
Alright, I understand exactly what .serialize does, but it doesn't seem to work for a $.post method.
This is the idea:
-
$.post('_myScript.php',
{ $('#myForm').serialize() },
function(data){
// successful operation
});
But you can't stick $('#myForm').serialize() there because it's not a 'mapped' pair.
I could turn
-
{ $('#myForm').serialize() }
into
-
{ info:$('#myForm').serialize() }
But that wouldn't allow me to use the $_POST[] array on the backend. Any ideas?
Thanks in advance.