# Using the results from forms

**URL:** <https://forum.kirupa.com/t/using-the-results-from-forms/25379>\
**Category:** flash\
**Created:** [July 11, 2003, 11:43pm UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379 "2003-07-11T23:43:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tranism](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tranism/32/269_2.png) [@tranism](https://forum.kirupa.com/u/tranism)\
**Post date:** [July 11, 2003, 11:43pm UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379/1 "2003-07-11T23:43:00Z")

</div>

Basically I would like to display what my server side script sends back after I submit my form. The results need to be displayed in my scroller box. I started to write it out but I am stuck. Any help would REALLY be appreciated. 🙂

[AS]//variables being sent to server  
//txtZip (input text) and cboDist (comboBox Component) are the variables  
formData = new LoadVars();  
formData.txtZip = “”;  
formData.cboDist = cboDist.getValue();

//object for replyData  
//Hopefully after this form is submitted, the server sends it’s repsonse to ‘replyData’  
//If successfully loaded, the output in displayed in my scroller boxed aptly names 'scroller  
replyData.onLoad = function() {  
if (success) {  
trace(“done loading”);  
scroller.html = true;  
scroller.htmlText = this.textfield;  
} else {  
trace(“not loaded”);  
}  
}

//function for submit button  
onSubmit = function() {  
formData.sendAndLoad(“[http://www.bcbg.com/zipcodesearchF.php](http://www.bcbg.com/zipcodesearchF.php)”, replyData, “POST”);  
}[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 12:09am UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379/2 "2003-07-12T00:09:06Z")

</div>

Anyone, help? ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 5:46pm UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379/3 "2003-07-12T17:46:47Z")

</div>

Can you post your fla?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 5:54pm UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379/4 "2003-07-12T17:54:37Z")

</div>

Try this:  
formData.onLoad = function() { //changed it to formData instead of replyData  
if (success) {  
trace(“done loading”);  
scroller.html = true;  
scroller.htmlText = replyData.textfield;//changed to where the variables are sent  
} else {  
trace(“not loaded”);  
}  
}

if this works, it may be that all your variables were being sent, but that you weren’t getting them from the right place.

let me know if it doesn’t work…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2003, 2:41am UTC](https://forum.kirupa.com/t/using-the-results-from-forms/25379/5 "2003-07-14T02:41:50Z")

</div>

I hope this helps. I still can’t think of why this isn’t working. If you can help, I’ll make a little shrine to you. :cyborg:

You can download the .fla @  
[http://www.tranism.com/storelocator.html](http://www.tranism.com/storelocator.html)

I can’t post it here cuz it says the file is too big. Sorry
