# Initiate php/javascript/ajax function from flash ^-^

**URL:** <https://forum.kirupa.com/t/initiate-php-javascript-ajax-function-from-flash/231886>\
**Category:** flash\
**Created:** [July 9, 2007, 11:29am UTC](https://forum.kirupa.com/t/initiate-php-javascript-ajax-function-from-flash/231886 "2007-07-09T11:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kormyen](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@kormyen](https://forum.kirupa.com/u/kormyen)\
**Post date:** [July 9, 2007, 11:29am UTC](https://forum.kirupa.com/t/initiate-php-javascript-ajax-function-from-flash/231886/1 "2007-07-09T11:29:39Z")

</div>

Hello, I’m very sorry if this question has already been answered, but is there any simple way to initiate a php, javascript and/or ajax function from within a flash app embeded into a page?

IE: when the user uses a flash login, to login to the site, could i make a java/pph or better yet ajax call to update the HTML of a blank div (javascript updateHTML command) with “events” (ie - you have 2 messages) from a mySQL database, without the need of a page refresh? ^-^

Try saying that fast =B

Thank you, for reading and thank you more if you can comment/point me in any direction XD

I thought; upon user loggin, I could send a “loggedIn” var (for example) with POST to a php page (havnt worked out ajax yet =B) that if loggedIn = true; query mySQL, then update the div with javascripts updateHTML command.

Would there be a better way? ^-^

`kormyen
