I currently have a <select> element populated by data from a DB (See screenshot below)
The PHP that renders it is simple:
print "<select>";
print "<option name=\"$wo_num\" value=\"$wo_num\">$order_date: #$wo_num - $client ($problem)</option>";
print "</select>";
The <select> element looks like this currently:
http://www.captainscall.site11.com/temp_stuff/select.png
I want to know the best approach to making my <select> element displayed more like a table than straight lines of data while maintaining the ability to ‘choose and option’
I have tried simply embedding a <table> inside the <select> to no avail.
I don’t necessarily need a <table>; I’m just going for a better aesthetic for the user.
You might need to rethink what you are trying to do here. Clearly there is allot of data in the select element, which would be better separated from the actual select option you are trying to give the user- A radio is one option already suggested.
The bottom line is that the input should be short and concise and the data should be displayed via HTML. This not only opens up the door for better styling via CSS but it would be allot easier for your users to read and understand what they are actually selecting.