# How do i format recieved vars

**URL:** <https://forum.kirupa.com/t/how-do-i-format-recieved-vars/137947>\
**Category:** Uncategorized\
**Created:** [February 18, 2005, 3:59pm UTC](https://forum.kirupa.com/t/how-do-i-format-recieved-vars/137947 "2005-02-18T15:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olm75](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@olm75](https://forum.kirupa.com/u/olm75)\
**Post date:** [February 18, 2005, 3:59pm UTC](https://forum.kirupa.com/t/how-do-i-format-recieved-vars/137947/1 "2005-02-18T15:59:55Z")

</div>

ok i have the recieved loadvars, but how can i format the results so they show up like the listings going across on

with the information recieved going across not down… here is the returned loadvars:

// Create another LoadVars instance to receive the server’s reply  
replyData = new LoadVars();

// Specify a function to call when this new instance receives the reply.  
replyData.onLoad = handleReply;  
// Submit the order data  
formData.sendAndLoad(submitURL, replyData, ‘POST’);  
// Tell the user what’s happening.  
message\_txt.htmlText = “Submitting search, please wait…”;  
}  
function handleReply(success) {  
if (success) {  
message\_txt.htmlText = “Your search was received:”+chr(10)+chr(10);  
for(var i = 0; i \< Number(replyData.totalNum); i++) {  
if(replyData[‘url’+i] != undefined && replyData[‘url’+i] != ‘’) {  
message\_txt.htmlText += “Venue Name: \<a href=’”+replyData[‘url’+i]+"’ target=’\_blank’\>" + replyData[‘venueName’+i]+"\</a\>"+newline;  
} else {  
message\_txt.htmlText += "Venue Name: "+replyData[‘venueName’+i]+newline;  
}  
message\_txt.htmlText += "Address: " + replyData[‘address’+i] + newline;  
message\_txt.htmlText += "City: " + replyData[‘city’+i] + newline;  
message\_txt.htmlText += "State: " + replyData[‘state’+i] + newline;  
message\_txt.htmlText += "Zip Code: " + replyData[‘zipCode’+i] + newline;  
message\_txt.htmlText += "Area Code: " + replyData[‘areaCode’+i]+chr(10);  
message\_txt.htmlText += "Phone: " + replyData[‘phoneNumber’+i]+chr(10);  
message\_txt.htmlText += “\<br\>”;  
}

} else {  
message\_txt.htmlText = “There was a problem submitting your search. The server may be down or not responding.”;  
}  
}
