Thanks, I took a look at that section of code, and it does make much more sense to use a for loop there. I changed it and that part works fine. I'm now more certain that its the PHP code that is incorrect.
When testing it out, it will successfully send the variables to PHP and return them to Flash - the problem is that it doesn't seem to break up the string correctly upon the return and gives an error.
Here is the PHP code that sort of works..
What happens when it sends it back is that in the first text field, it shows something like "blah1tName2=blah2" and then doesn't show anything in the second text field and gives an error. So for whatever reason it's not splitting up the name/value pairs.
I also tried this code, but it doesn't work at all. I think it might be some sort of syntax thing that I'm not familiar with yet.
$numVariables = 0;
function writeVariable( $name, $value )
if( $numVariables > 0 )
echo $name . "=" . urlencode($value);
writeVariable( "tName1", $tName1 );
writeVariable( "tName2", $tName2 );
And then there's the whole matter of using a loop in PHP since there's so many variables being passed, but I guess we'll just take this one step at a time. Thanks for the help!