Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8642931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:54:19+00:00 2026-06-12T11:54:19+00:00

I was just wondering how I would go about retrieving the id from an

  • 0

I was just wondering how I would go about retrieving the id from an input type file field within PHP.

<input name="images[]" class="browse" type="file" id="0_0">

I need to use the id. I previously was using another input

<input name="ids[]" class="browse" type="hidden" id="0_0">

In conjunction with the file inputs but it was too cumbersome. I had a look at,

print_r($_FILES['images']);

But that didn’t have the id stored. And neither does,

$_POST['images'];

Is it possible to retrieve the id of the file inputs?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:54:20+00:00Added an answer on June 12, 2026 at 11:54 am

    Why not include the ID you’re looking for in the name?

    <input name="images[0_0]" class="browse" type="file" id="0_0">
    

    It probably won’t break any looping you’re doing, and you’ll have access to it in the $_POST['images'] array keys.

    As dbf said, it’s impossible access the id attribute with PHP after the form has been posted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Was just wondering how I would go about creating a planar shadow from a
Just wondering how people would go about this. Say I have one class that
Just wondering under what circumstances would you prefer to generate a proxy from a
Just wondering how you would go about creating the effect as seen in the
I was just wondering how you would go about giving a application the new
I was just wondering how would I go about checking to see if, for
I was just wondering, how would I go about creating a browser based 3D
I just wondering if anyone can explain to me how I would go about
I was just wondering what would be the best way of going about creating
Just wondering if the key to shared memory is the file name or the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.