# Flash to MySQL using PHP failing?

**URL:** <https://forum.kirupa.com/t/flash-to-mysql-using-php-failing/279723>\
**Category:** flash\
**Created:** [January 18, 2009, 12:07pm UTC](https://forum.kirupa.com/t/flash-to-mysql-using-php-failing/279723 "2009-01-18T12:07:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotchegg](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@scotchegg](https://forum.kirupa.com/u/scotchegg)\
**Post date:** [January 18, 2009, 12:07pm UTC](https://forum.kirupa.com/t/flash-to-mysql-using-php-failing/279723/1 "2009-01-18T12:07:01Z")

</div>

HI guys

I seem to have a little issue this flash calling PHP files.

I simply want to have an input box in my flash file send a new email address to a subscription page.

The php page works if called independently. But it fails to work from flash?  
I am not even trying to use input boxes now just get it to call the ■■■■ thing!

flash button is

```auto

on (release) {
 form.loadVariables("email.php", "POST");
}
 

```

email .php –

```auto

$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  
  }
  mysql_select_db("techbe_email", $con);
  
  mysql_query("insert into email_list_subscribers (listid,emailaddress,format)VALUES ('4','test10@php.com','h')");

mysql_close($con);
 

```

thanks for any help!?
