[Solved] I want both values before and after submitting a form


You could put the initial value in a hidden field as well as the visible one, e.g.:

<input type="text" name="greeting" value="Hello" />
<input type="hidden" name="greeting-original" value="Hello" />

Then you can do what you like with greeting and greeting-original when the form is submitted.

2

solved I want both values before and after submitting a form