Right, I think I understand.
Since you're posting in a JavaScript forum, I assume it's OK to use JavaScript for the solution as well.
What you need to do is this:
1. Remove three hidden fields from your page, so you end up with only one field called x_month
2. On the click of each radio button, fire some JavaScript that sets the value for the x_month text box. This way, you can have four radio buttons and only one text box
3. At the server, read the value from the x_month textbox. It should contain only one value.
At the server, you also have to validate the x_month and x_amount again. It would be too easy for a user to submit a hand-made form that pays for 1 month, but passes 12 or 120 to the x_month box.
Here's some code that does what I described:
Code:
<form>
<input name="x_amount"
onclick="document.forms[0].x_month.value='3';"
type="radio" value="9,75">
<input name="x_amount"
onclick="document.forms[0].x_month.value='6';"
type="radio" value="9,75">
<input name="x_amount"
onclick="document.forms[0].x_month.value='9';"
type="radio" value="9,75">
<input name="x_amount"
onclick="document.forms[0].x_month.value='12';"
type="radio" value="9,75">
<input name="x_month" id="x_month" type="hidden">
</form>
To see if it works, change the type of x_month tp text instead of hidden, and you'll see it gets a different value when you click one of the radio buttons.
Is this what you were looking for?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.