Jump to content

Search the Community

Showing results for tags 'ios 6'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi Guys, I been googling every where to find some code sample that will enable me to upload multiple photos from an iphone running IOS 6 to a website. According to what I had read, Safari for IOS supports this by using a mutiple boolean value in an input tag. And that works fine. When the button is pressed to select pictures I am able to select multiple pictures, what I can't seem to figure out is how on the server side I can grab those multiple images selected. Here is code sample( I found online not mine) that I was able to use . And it works fine with 1 image; I can upload the image. But with 2 or more I can't seem to figure out how to make it happen. Thank you. <?php $result=0; if (trim($_POST["action"]) == "Upload File") { //**** User Clicked the Upload File Button //*********** Execute the Following Code to Upload File ************* $imagename = basename($_FILES['image_file']['name']); // grab name of file $result = @move_uploaded_file($_FILES['image_file']['tmp_name'], $imagename); // upload it if ($result==1) echo("Successfully uploaded: <b>".$imagename."</b>"); // did it work? } // end if ?> <html> <head> <title>Upload file script</title> </head> <body> <form method='POST' enctype='multipart/form-data' name='frmmain' action='up2.php'> Browse for Image (jpg): <input type="file" name="image_file" size="35"> <br> <input type="submit" value=" Upload File " name="action" multiple> </form> <br> <?php if ($result==1) echo("<img src='".$imagename."'>"); // display the uploaded file ?> </body> </html> Can any one help me figure out how I can make this happen?
×
×
  • 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.