Código
var post = $('#textarea').serialize();
var post2 = $('#textfield').serialize();
$.post("post.php",( post, post2 ), function(data) {
etc..
});
Se me ha ocurrido probar con
Código
var datas = new Object(); //se crea objeto data
datas.textarea = $('#textarea').serialize();
datas.textfield = $('#textfield').serialize();
$.post("post.php",datas, function(data) {
etc..
});
pero si en el post hago echo $_POST['textarea'], me muestra textarea=sdfk y lo mismo con el textfield.
Tengo que hacer
$_POST['textarea'] =str_replace("textarea=", "", $_POST['textarea']);
$_POST['textfield'] =str_replace("textfield=", "", $_POST['textfield']);
y me aguanto o se puede hacer bien?


 
  




 Autor
 Autor
		


 En línea
									En línea
								




 
						