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 4592744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:35:02+00:00 2026-05-21T22:35:02+00:00

In my form i have fields with name photoid[] so that when sent they

  • 0

In my form i have fields with name photoid[] so that when sent they will automatically be in an array when php accesses them.

The script has been working fine for quite some time until a couple days ago. And as far as i can remember i havent changed any php settings in the ini file and havent changed the script at all.

when i try to retrieve the array using $_POST['photoid'] it returns a string with the contents ‘ARRAY’, but if i access it using $_REQUEST['photoid'] it returns it correctly as an array. Is there some php setting that would make this occur? As i said i dont remember changing any php settings lately to cause this but i might be mistaken, or is there something else i am missing.

  • 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-05-21T22:35:03+00:00Added an answer on May 21, 2026 at 10:35 pm

    Raise your error_reporting level to find any potential source. It’s most likely that you are just using it wrong in your code. But it’s also possible that your $_POST array was mangled, but $_REQUEST left untouched.

    // for example an escaping feature like this might bork it
    $_POST = array_map("htmlentities", $_POST);
    // your case looks like "strtoupper" even
    

    To determine if your $_POST array really just contains a string where you expected an array, execute following at the beginning of your script:

    var_dump($_POST);
    

    And following for a comparison:

    var_dump(array_diff($_REQUEST, $_POST));
    

    Then verifiy that you are really using foreach on both arrays:

    foreach ($_POST["photoid"] as $id) { print $id; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a field in my form labeled Name that will contain both the
I have a HTML form with fields such as name, address, notes, etc. I
I want to make a user-registration form where I will have fields such first
I have a form with multiple fields that I'm validating (some with methods added
in my form I have three input fields name, email, mobile but I want
I have a form with three fields Name, Email Address & Password. now i
I have a html form, which like this: I have 2 fields, name and
I have a form with 4 fields First Name (required) Last Name (required) Email
I have a form with some fields of type text and 2 fields (name
I have 3 HTML form inputs fields that is dynamically generated by a add

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.