Just to repeat, you do not have to do this. The selected value will already be posted, as the value of your "quantity" object.
But, if you want to move the value of one element, to another, you have to use JavaScript.
So the question is, where do I put this script, and the next question is, when does it run?
The answer to the first part is, create a JavaScript function, and place it in the head of your page:
<html>
<head>
<script type="text/javascript">
function movevalue()
{
s = document.getElementById("quantity");
document.getElementById("ssl_amount").value =
s.options[s.options.selectedIndex].value;
}
</script>
</head>
<body>
</body>
</html>
Ok, so that places the script on the page, ready to run. When will it run? In response to an EVENT. The question you have to ask is, what event should cause this to run?
I would suggest perhaps when the user changes the value of the selected option. That event, "change", is handled by adding onchange="movevalue();"
to your select tag.