I want to pass the value of input field address to php. So that when i click on submit button it will be store in php.
address
You are mixing PHP and JavaScript. If you want a pure PHP solution you could do something like:
With PHP once the form is submitted you can access form values with $_POST so use $_POST['address'] instead of document.address.value
$_POST
$_POST['address']
document.address.value