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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:44:17+00:00 2026-06-09T00:44:17+00:00

I have a form in a php page with a lot of text inputs

  • 0

I have a form in a php page with a lot of text inputs in it, with a presetted value each.
When someone submit the page by POST, I would like to know which of them have been changed, so I thought I could set a property of the text (like background colour) when someone type in the text input.

After the submit, how can I get the properties of inputs to see if they have been changed? $_POST[‘name_of_text_input’] return only the value of the input?

  • 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-09T00:44:18+00:00Added an answer on June 9, 2026 at 12:44 am

    You can’t see if they have been changed as simply as that.

    PHP runs on the server, and once the data has been sent to the user, as far as PHP is concerned, that’s the end of it. It doesn’t remember anything else unless you specifically tell it to remember (via a session or some data in the database).

    You will have to do one of the following:

    • have a second hidden variable changed by javascript that shows ‘changed’ or some such thing that you compare to.
    • load the initial values in your PHP code and compare against them to see if they have changed
    • if the values are preset, you can check the posted value against the preset value manually in your PHP code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have am HTML form in a PHP page. The form has various inputs.
I have a form that looks like this. <form action=index.php method=post> <select name=dropdownOption> <option
I have a form with a lot of inputs (text inputs, textareas, checkboxes...) that
I have a php page called form.php. When you go to this page it
I have a form page in PHP that reads a DBF, and conditionally converts
I have a PHP page that queries a DB to populate a form for
I have a contact page (contact.php) that sends a form (formsend.php) when people fill
I have a simple html form. On php page. A simple list is placed
I have a Create new account page. The form is in page named Register.php
I have a form on a page that sends data to php file via

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.