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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:14:48+00:00 2026-06-01T23:14:48+00:00

On my server, instead of using $_POST[‘username’] to collect data after a form has

  • 0

On my server, instead of using $_POST[‘username’] to collect data after a form has been submitted, I have simply been able to use $username

so, after a form submission:

echo $username;

would produce the same as:

echo $_POST['username']

I have just moved to a new server and this seems to not work on my new server… is this something that was set in PHP maybe?

I now have the task of going through an entire site otherwise and changing a very form driven site to use the new $_POST[] method (well not new but you know what I mean)

Also, is NOT using $_POST[], as I have been in the past, bad practice and why?

  • 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-01T23:14:49+00:00Added an answer on June 1, 2026 at 11:14 pm

    The automatic creation of variables from $_POST, $_GET and $_COOKIE is the effect of the register_globals INI directive.

    It is deprecated due to security issues and is turned off by default on recent installations. I suggest you never rely on this feature and always explicitly specify the original source of your data.

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

Sidebar

Related Questions

What is the difference between INSTEAD OF and AFTER trigger in SQL Server? INSTEAD
I'm using js to upload files to the server using this <form name=form action=
Background I'm using POST form submissions instead of links with concatenated arguments inside a
Up until now I have been using: xmlhttp.open(GET,server_script.php?q=+str,true); Thanks Edit: I am providing a
I have a PHP SOAP server (using nuSOAP) that I consume with a C#-based
I'm using the following code: <form action= method=post enctype=multipart/form-data> <label for=file>Filename:</label> <input type=file name=file
For example, writting server-side things using javascript, instend of php.
It seems that WMD-Editor is posting HTML to the server instead of the markdown.
How do i use ajax to send POST requests to the server instead of
I'm wondering if I can use SQL Server CE instead of SQL Server Express+

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.