Now, how can I serve the same purpose with radio buttons and a text box instead of 2 text boxes,
I hope i was able to explain it some what. Any help highly appreciated.
Older browsers will treat number as a text field anyway. Newer ones will filter the inputs automatically, smartphones visiting the site will present a numeric keypad instead of a full keyboard.
and these are the radio button
<input type="radio" name="rate" value="i">Effective Value <input type="radio" name="rate" value="r">Nominal value
how are they going to integrate.
If neither radio button is clicked, $_REQUEST[‘rate’] will not be set. Otherwise, it will have the value of the radio button that was checked when the form was submitted.
I would recommend setting a default with the checked attribute and using the label tag for the radio button’s label.
The for attribute of label links it to the radio button. The value of the attribute must match the id of the radio button. Once set, it allows the radio button to be checked by clicking the label.
Although these solutions didn’t address my main problem, they are still priceless advise. I guess I was not able to articulate my self well. Any way I was able to solve the main problem.
Thanks