Jump to content

Fetching uploaded data


jason360

Recommended Posts

Hey guys,  I am having trouble fetching data from my iphone uploaded text.

 

I ran the print_r for both the website upload form (which works) and

the iphone function.  Here is what I am getting:

 

 

When I used the iphone the print_r($_POST) gives me:

 

Response=Array ( [photo_caption] => test1 [photo_details] => text2)

 

 

The upload form from the website that works gives me:

 

 

Array ( [photo_caption] => Array ( [0] => test1 ) [photo_details] =>

Array ( [0] => test2 )

 

 

What is the best way to capture the text on my server/php side for the

response: Array ( [photo_caption] => test1 [photo_details] => text2)?

 

 

I can't add [] to the java script of "params.photo_caption" as it stops the app from

loading correct.

 

 

Here is my server/php side right now which works with the website based upload form:

 

/ Fetch the photo caption array

        $photo_caption1 = $_POST['photo_caption'];

        $photo_details1 = $_POST['photo_details'];

        $photo_story1 = $_POST['photo_story'];

        $photo_email = $_POST['photo_email'];

 

 

Any help is much appreciated.  I have been trying to sort this out for weeks.

 

 

Jason

Link to comment
https://forums.phpfreaks.com/topic/242487-fetching-uploaded-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.