3
I have a form with 2 fields, User and Password.
$.post('recebe.php',{
`Nome:'Meu Nome'`
`Senha:'Minha Senha'`
},function(data){
alert(data);
});
Is there any way to take the name and value of inputs and do POST without having to type each attribute and its respective value?
You want it to automatically pick up the fields in a
form
and use yourname
s andvalue
s as parameters for thepost
. Is that it? Or did I get it wrong?– mgibsonbr