If you select the Indoor radio button and submit the form, the form data for the button is based on its name and value attributes. Since your radio buttons do n

<label for="indoor"> Indoor
<input id="indoor" type="radio name=" name="indoor-outdoor" value="indoor"> </label>
          <label for="outdoor">Outdoor
<input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> </label>

Do you have a question?

Also, if you are posting code, can you surround it in back ticks. It’s difficult to read if you don’t do that, particularly with HTML. There is a button in the text editor you use to make post/comments to do that: click the little cog icon and select “preformatted text”

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.