I’ve got a basic html form. When the user clicks ‘submit’, naturally the input data is stored in the $_POST array.
What if I wanted to include some of my own predefined data inside $_POST?
e.g. the user is updating the title of their post, when they click ‘submit’ I want to send their old title as well.
Any ideas? Sorry if I’m unclear…
Why not send it as a “hidden” input value?
That way, it’s not seen on the user end, but it’s passed along as data that isn’t changeable on their end (unless they open up a DOM inspector like Console or FF’s developer tools).