# How to pass multiple variables from Flash to mySQL with PHP

**URL:** <https://forum.kirupa.com/t/how-to-pass-multiple-variables-from-flash-to-mysql-with-php/299890>\
**Category:** flash\
**Created:** [November 12, 2009, 8:36am UTC](https://forum.kirupa.com/t/how-to-pass-multiple-variables-from-flash-to-mysql-with-php/299890 "2009-11-12T08:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hagop](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hagop](https://forum.kirupa.com/u/hagop)\
**Post date:** [November 12, 2009, 8:36am UTC](https://forum.kirupa.com/t/how-to-pass-multiple-variables-from-flash-to-mysql-with-php/299890/1 "2009-11-12T08:36:58Z")

</div>

Hi all

When I pass a single variable (telephone) from Flash using the below it works fine

_**[SIZE=1]var xmlSaveLoader:URLLoader = new URLLoader();  
xmlSaveLoader.load(new URLRequest(“customer\_insert.php?telephone=”+telephone));[/SIZE]**_

I can read the variable in PHP using  
\*\*\*$key\_telephone = $HTTP\_GET\_VARS[telephone];

* * *

and then run sql command to insert into table customers  
_**[SIZE=1]mysql\_query("INSERT into customers (telephone) values ($key\_telephone) ");  
[/SIZE]**_  
However, I have a problem and don’t know how to pass multiple variables to PHP. I tried the following to pass a second variable (first\_name)but it doesn’t seem to work…  
_**[SIZE=1]xmlSaveLoader.load(new URLRequest(“customer\_insert.php?telephone=”+telephone+"&first\_name="+first\_name));[/SIZE]**_  
_**[SIZE=1][/SIZE]**_  
Any help ?  
Thanks  
Hagop
