ajax. submitting data. concept question
Posted: Mon Dec 11, 2006 9:55 am
Hi,
Are you guys always submitting whole form data when using ajax...or just some fields necessary for the operation you want to perform?
Would it be wrong to submit whole form data?
As a result, comes the question on how to collect all form data and safely transfert it to php. I think JSON is key word here..but not sure.
while it is easy to itterate each form element using javascript....
What about trying to get array out of some var? Is this wrong and useless approach to try?
Would greatly appreciate any comment on that.
Thanks
Are you guys always submitting whole form data when using ajax...or just some fields necessary for the operation you want to perform?
Would it be wrong to submit whole form data?
As a result, comes the question on how to collect all form data and safely transfert it to php. I think JSON is key word here..but not sure.
while it is easy to itterate each form element using javascript....
What about trying to get array out of some var? Is this wrong and useless approach to try?
Code: Select all
<intput type='text' name='collection[]' />Thanks