Forum Moderators: coopster
This is my current situation: I retrieve data from a database through XML files. The first xml file parses a couple of delivery addresses. The user has to select one of these adresses to continue. Depending on that particular address an order can be made on another page. My question is: How can I get the selected address. With other words. How can I get the address that belongs to the selected radio button? Ofcourse each delivery address has an unique ID, but I don't show this to the user. Should I perhaps first save all the address information in an array? And later in the order page loop through this array to check for the selected radio button? How do I do this exactly? Has anyone a clear example?
Thanks in advance!
Jacco
>>I didn't use the label for option by the way. It's not a demand to get it working I found out. Does it have purpose in this case?
When a LABEL [w3.org] element receives focus, it passes the focus on to its associated control (you can click the text next to a radio button, for example, and the button will be selected).
Labels may be rendered by user agents in a number of ways (e.g., visually, read by speech synthesizers, etc.) This is good in that your pages are accessible to all individuals, including those with disabilities.