Jump to content
Larry Ullman's Book Forums

Chapter 2 - Script 2.1 - form.html

Recommended Posts

Line 24 of the script:

<p><label for="gender">Gender: </label><input type="radio"  name="gender" value="M"> Male <input type="radio" name="gender" value="F"> Female</p>

Generates two - "Missing associated label" warnings and one "invalid id reference" error when using JetBrains PHPStorm 2020.2.  Why and how can this be corrected? 

Despite the warnings and error messages, the script functions correctly.

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...