# Ajax help needed!

**URL:** <https://forum.kirupa.com/t/ajax-help-needed/319063>\
**Category:** web dev\
**Created:** [February 8, 2011, 1:13am UTC](https://forum.kirupa.com/t/ajax-help-needed/319063 "2011-02-08T01:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atokatim](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@atokatim](https://forum.kirupa.com/u/atokatim)\
**Post date:** [February 8, 2011, 1:13am UTC](https://forum.kirupa.com/t/ajax-help-needed/319063/1 "2011-02-08T01:13:20Z")

</div>

Hello again everyone! I am working on a new project for a company and I am having an issue dealing with Ajax. What I am attempting to do is send data to a php file using ajax, then return 2 variables. I keep seeing all over the web to either use arrays or json which I do not want to use. The reason I don’t want to use arrays is because the php file sends back about 50 lines of html code which is populated dynamically into a form which is inside a div. JSON is just more files that I have to add to the server and then learn how to use it for 1 function. That seems pointless to me ☹ So for the actual question…Is there a way besides JSON or a HUGE array to retrieve 2 variables via AJAX in the same request?
