# AS support on submiting images

**URL:** <https://forum.kirupa.com/t/as-support-on-submiting-images/294465>\
**Category:** flash\
**Created:** [August 14, 2009, 11:06am UTC](https://forum.kirupa.com/t/as-support-on-submiting-images/294465 "2009-08-14T11:06:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ron\_ron](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@ron\_ron](https://forum.kirupa.com/u/ron_ron)\
**Post date:** [August 14, 2009, 11:06am UTC](https://forum.kirupa.com/t/as-support-on-submiting-images/294465/1 "2009-08-14T11:06:14Z")

</div>

In my submit form I’ve got 5 images in UI component LOADERS. I need advice on how to write the AS code to send the images to the server PHP.

This is my current AS code.

```auto
 var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function () {
 senderLoad.thename = thename.text;
 senderLoad.thecompany = thecompany.text;
 senderLoad.theaddress = theaddress.text;
 senderLoad.sendAndLoad("[web.web/send.php",receiveLoad](http://www.indico.net.au/dyodept/send.php%22,receiveLoad));
}
receiveLoad.onLoad = function () {
 if(this.sentOk) {
  _root.gotoAndStop("success");
 }
 else {
  _root.gotoAndStop("failed");
 }
}

```
