# Flash/perl interaction

**URL:** <https://forum.kirupa.com/t/flash-perl-interaction/8514>\
**Category:** Uncategorized\
**Created:** [November 22, 2002, 2:54pm UTC](https://forum.kirupa.com/t/flash-perl-interaction/8514 "2002-11-22T14:54:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![subatomicsatan](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@subatomicsatan](https://forum.kirupa.com/u/subatomicsatan)\
**Post date:** [November 22, 2002, 2:54pm UTC](https://forum.kirupa.com/t/flash-perl-interaction/8514/1 "2002-11-22T14:54:14Z")

</div>

hello all,

i’m not sure this is possible, but:

is there a way in flash mx other than loadVariables or getURL to have flash mx interact with the server (for example, a perl script)? meaning, do all such interactions have to occur with a webserver running (ie access to scripts in cgi-bin)?

thanks!

james

---

<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:** [November 22, 2002, 5:18pm UTC](https://forum.kirupa.com/t/flash-perl-interaction/8514/2 "2002-11-22T17:18:41Z")

</div>

You should define your variables according to your script, and then post them through flash using the new LoadVars way, example:

This example will send the information from a flash file into the Perl Script:

```php

var dataHandler = new LoadVars();//This will create a new LoadVars Object called dataHandler.
dataHandler.FirstName = FirstName.text;// this will assign DataHandler FirstName variable to FirstName textfield
dataHandler.send("script.pl", dataHandler, "POST");// this will POST DataHandler Variables into the perl script

```

Hope this helps.

yours,  
h88

---

<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:** [November 22, 2002, 6:39pm UTC](https://forum.kirupa.com/t/flash-perl-interaction/8514/3 "2002-11-22T18:39:33Z")

</div>

hey h88,

can i put a path to the perl script?

thnax for the response! as soon as i bgin experimenting, i’m sure it’ll become more clear to me.

james

---

<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:** [November 22, 2002, 6:40pm UTC](https://forum.kirupa.com/t/flash-perl-interaction/8514/4 "2002-11-22T18:40:36Z")

</div>

> \*Originally posted by subatomicsatan \*  
> **can i put a path to the perl script?**

Offcourse! 🙂
