php - Sending my own $_POST data along with users -


I have a basic html form when the user clicks on 'submit', then naturally input data $ _POST array Is stored in

What if I want to include some of my predefined data within $ _POST?

For example, the user is updating the title of their post, when they click on 'submit', then I also want to send my old title too.

Any thoughts? Sorry, if I'm not clear ...

Why not send it as a "hidden" input value?

  & lt; Input type = "hidden" name = "old_value" value = "something" & gt;   

In this way, it has not been seen at the end of the user, but it has been passed as data that can not change at the end of them (unless they are connected to the console or Developer tools like FF, such as a DOM inspector do not open).

Comments