What potential pitfalls should be considered when using disabled attributes for <option></option> elements in PHP forms?

Using the disabled attribute for <option></option> elements in PHP forms can prevent users from selecting certain options, but it is important to consider potential accessibility issues. Instead of using the disabled attribute, consider using the readonly attribute or dynamically generating the options based on user input to ensure a better user experience.

&lt;select name=&quot;example&quot;&gt;
    &lt;option value=&quot;1&quot; disabled&gt;Select Option 1&lt;/option&gt;
    &lt;option value=&quot;2&quot; selected&gt;Select Option 2&lt;/option&gt;
&lt;/select&gt;