# Send simple form data to php

**URL:** <https://forum.kirupa.com/t/send-simple-form-data-to-php/263011>\
**Category:** flash\
**Created:** [June 11, 2008, 8:49pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011 "2008-06-11T20:49:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 11, 2008, 8:49pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/1 "2008-06-11T20:49:19Z")

</div>

Hmm,

Simply need to pass for data to PHP and I cannot figure out how… What do I need to do to hit a php file?

```auto

            private function submitLogin(eventObj:MouseEvent):void {
                Alert.show("Submitting Data");
                var myData:URLRequest = new URLRequest("save.php")
                myData.method = URLRequestMethod.POST
                var variables:URLVariables = new URLVariables()
                variables.Title = "Test";
                myData.data = variables
                var loader:URLLoader = new URLLoader()
                loader.dataFormat = URLLoaderDataFormat.VARIABLES
                loader.load(myData)
            }  

```

How do I actually send the data?

Any links would be awesome…

TIA

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 11, 2008, 8:54pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/2 "2008-06-11T20:54:17Z")

</div>

edit: it appears that the save.php isn’t being called… I have no idea why.

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 11, 2008, 9:16pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/3 "2008-06-11T21:16:00Z")

</div>

Ok that actually works, my mail server is just slow :lol:

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 11, 2008, 9:17pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/4 "2008-06-11T21:17:48Z")

</div>

Haha, I’ve tried debugging that sort of thing before only to realize it was just taking forever. :lol:

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 11, 2008, 9:25pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/5 "2008-06-11T21:25:04Z")

</div>

Yeah I’m like wait this should be exactly as if I was doing it in Flash so why is it not working… Oh well…

btw - now that I know some AS 3 flex is way cool. I tried using it before without any AS 3 knowledge and didn’t get very far. Do you use it at all?

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 11, 2008, 10:06pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/6 "2008-06-11T22:06:51Z")

</div>

It’s definitely way cool for certain things. I’ve used it a bit, just to get a feel for it more than anything else. It feels a little restrictive to me, and where I feel like I can accomplish almost anything within Flash in a good object oriented fashion, the benefits seem sort of minimal to me - especially when working with designers who like to lay out assets for me in shared Flash libraries.

I really probably haven’t used it enough to see all the benefits.

---

<div class="post-metadata">

**Author:** ![Stratification](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Stratification](https://forum.kirupa.com/u/Stratification)\
**Post date:** [June 11, 2008, 10:29pm UTC](https://forum.kirupa.com/t/send-simple-form-data-to-php/263011/7 "2008-06-11T22:29:41Z")

</div>

Biggest benefit is flexible layout in online apps. I used to spend a ton of time laying things out, making sure things moved if the window was resized. Flex does it all for me, it’s not great for extremely free-form stuff, but the layout engine is gold as far as I’m concerned.
