Put each field next to a radio button. Initialize all fields as read-only. When a radio button is selected, enable its field and disable all others. You don't need to validate this on the server side because the values in the disabled fields won't matter.
Code:
<html>
<head>
<script type="text/javascript">
window.onload = function(){
var elements = document.forms.myform.elements;
var meta = {
previous: null
};
for(var i = 0; i < elements.length; i++){
if(elements[i].type == 'radio' && elements[i].name == 'which'){
elements[i].text = elements['which-' + elements[i].value];
elements[i].text.readOnly = true;
elements[i].onchange = toggle;
elements[i].meta = meta;
}
}
function toggle(){
if(this.meta.previous){
this.meta.previous.readOnly = true;
}
this.text.readOnly = false;
this.meta.previous = this.text;
}
};
</script>
</head>
<body>
<form name="myform">
<input type="radio" name="which" value="1"><input type="text" name="which-1"><br>
<input type="radio" name="which" value="2"><input type="text" name="which-2">
</form>
</body>
</html>
Bookmarks