I’m trying to echo out a value that was inserted into my database with a drop down box.
For example, when I click ‘edit’ for a row, I want that value to be the value pre-selected in the edit form drop-down box. However, it defaults to the first option in the ‘select’ tag on my edit form.
My question:
How do I do I accomplish this? I give my current code below which is not able to do this function. Thanks!
I should say that I removed the line that defines “$type” since I already had that in my controller - took me a bit to realize this since it wasn’t working at first.
But, using my controller definition and removing that line it works great!