# PHP to Flash

**URL:** <https://forum.kirupa.com/t/php-to-flash/275465>\
**Category:** flash\
**Created:** [November 14, 2008, 2:31am UTC](https://forum.kirupa.com/t/php-to-flash/275465 "2008-11-14T02:31:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThaJock](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Post date:** [November 14, 2008, 2:31am UTC](https://forum.kirupa.com/t/php-to-flash/275465/1 "2008-11-14T02:31:35Z")

</div>

I am able to successfully send variables to PHP with the following code.

var URL:String = “/login.php”;  
var variables:URLVariables = new URLVariables();  
variables.var1 = “var1”;  
variables.var2 = “var2”;

var request:URLRequest = newURLRequest(URL);  
request.data = variables;

sendToURL(request);

From PHP I run a script to check see if these values exist in my database. If they do then I want to echo back a string that I can bring back into flash. Can anyone please help me out with that?

An help would be greatly appreciated
