I'm currently using this bit of code which submits some form values to a php script which then returns the results into the target html as specified.
However what i'd like to do is submit the form items using serializeArray but then return multiple items from the php script and insert them in multiple places on the page, not just in the form itself.
I know i could simply use that line of code 4 times over with 4 different html targets but i don't feel it is very efficient or DRY. So i'd like to know the best way to submit multiple values to a php script, return multiple responses and use those responses in multiple places in the html.
I hope that makes sense!
Thank you very much in advance for any help anyone can provide.