How do I do this?
Posted: Sun May 20, 2012 1:59 am
I would like to do iterate query and store the information to the database directly. How do I do it?
I used to use
$.getJSON( surl, pars, function(textDoc){....});
to get something from the server. But now I do not need anything back, i.e.
I only send a parameter to the server, the server will get the information and insert into database directly.
It seems I can use
<form action="....php" method="get">
<input ....>
</form>
But this way I cannot do iterate. Therefore I have to do it using javascript, to my understanding.
I used to use
$.getJSON( surl, pars, function(textDoc){....});
to get something from the server. But now I do not need anything back, i.e.
I only send a parameter to the server, the server will get the information and insert into database directly.
It seems I can use
<form action="....php" method="get">
<input ....>
</form>
But this way I cannot do iterate. Therefore I have to do it using javascript, to my understanding.