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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:11:17+00:00 2026-06-04T02:11:17+00:00

I know this is totally wrong, I didn’t write the app, I just have

  • 0

I know this is totally wrong, I didn’t write the app, I just have to make it work while I work on the new one. Seems like GoDaddy made some updates to our account so now there are some things that don’t work. I already turned register globals on and a lot of things went back to normal. Now, this doesn’t work…

There is a hidden field <input type="hidden" name="SUBMIT1" value="1" />

There is a check for that field

if($SUBMIT1) {
  // this part never gets executed. 
}

I know I can easily fix it by doing this instead…

if($_POST['SUBMIT1']) {
  // this part never gets executed. 
}

The problem is, this is a huge app and it’s going to take a loooong time to do that everywhere. Is there a way or a setting I can turn on so that when a form is submitted $_POST['WHATEVER'] also works as $WHATEVER?

  • 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-04T02:11:18+00:00Added an answer on June 4, 2026 at 2:11 am

    You can use extract to get the exact functionality you described:

    extract($_POST);
    

    Please note the possible safety issue here: a user could send extra data in $_POST and “overwrite” the values of existing variables in your code. You can pass a second parameter to extract to prevent these problems:

    extract($_POST, EXTR_SKIP);
    

    This will skip extracting any fields in the $_POST array that already have matching variables in the current scope.

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

Sidebar

Related Questions

I know this seems like I should have immediately found the one example out
I know this is an old question, but I have spend any hours on
I know this is an easy concept, but I just can't seem to get
I know this is easy but i m just not able to debug it.
UPDATED: This is totally wrong assumption. I retested it and sure enough I was
Be aware that I might be doing this totally wrong, so I apologize in
I know this isn't strictly a programming question but y'all must have experienced this.
I don't know if I totally got the concept wrong, but I want to
Know this might be rather basic, but I been trying to figure out how
i know this is a stupid question but i d'ont know how to do

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.