-
Flash to PHP variables
Hi, i'd be greatful if someone in the know could check this over for me as its my first php script.
I am sending 5 arrays from Flash to my PHP script called
FirstArray
SecondArray
ThirdArray
OpenItalArray
CloseItalArray
My Php looks like this
PHP Code:
<?php
// Recieving the variables.
$FirstArray = $_POST['FirstArray'];
$SecondArray = $_POST['FirstArray'];
$ThirdArray = $_POST['FirstArray'];
$OpenItalArray = $_POST['OpenItalArray'];
$CloseItalArray = $_POST['CloseItalArray'];
//explode the variables
$FirstArray1 = explode($FirstArray);
$SecondArray1 = explode($SecondArray);
$ThirdArray1 = explode($ThirdArray);
$OpenItalArray1 = explode($OpenItalArray);
$CloseItalArray1 = explode($CloseItalArray);
?>
I first want PHP to accept the variable then explode them, can you please let me know where i'm going wrong?
Many thanks
Bottlebank
-
Hi,
to make sure you are actually sending the data, you should temporarily change your flash to open the php in a new window, and put some echo() or var_dump() into the php.
You should tell explode the delimiter character between the array elements (likely a comma, but depends on how the flash code sends data)
Musicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|