The PHP is server script language. You must pass the veriable to php in next page or refresh this page to send it.
I don't know why you can not submit it.
If you want to change another veriable in the form you can use javascript to do it. If you want save it to database you must to pass it to php.