Gilbert 1 Posted March 7, 2018 Report Share Posted March 7, 2018 I have used combo boxes for years in Access and the 'select' element on an html form is similar. All of the tutorials on w3 show how to fill the 'options' with literal values, but I would like to have the options be filled from a table in a database so the user can select one. I know this is probably a cross-topic item and I have an idea of how to go about it using javascript, php and sql, but I thought I'd ask if anyone knew of a procedure which is already created for this. In Access you just enter the row source for the combo box and the options are there - is there any kind of construct to do that for a 'select' element in html? Thanks Quote Link to post Share on other sites
Ingolme 1,022 Posted March 7, 2018 Report Share Posted March 7, 2018 You have to use a programming language to loop through database records and generate options. HTML is completely unaware of what happens on the server. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.