Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.