Sim Posted July 15, 2020 Share Posted July 15, 2020 Maybe y'all can see something I am looking past. HTML: it's inside the form tags. <div class="form-group"> <label class="pull-left">Main Type:</label> <select class="form-control" name="parentID" id="parentID"> {#each itemTypes} <option value="{id}" {selected}>{name}</option> {/each} </select> </div> PHP: $data = (array) $this->methodData; var_dump($data); DATA: as you can see all other form Elements have values that are suppose to. Name and desc array(9) { ["page"]=> string(5) "admin" ["module"]=> string(9) "itemTypes" ["action"]=> string(3) "new" ["id"]=> string(0) "" ["name"]=> string(9) "Name test" ["desc"]=> string(16) "Description test" ["note"]=> string(0) "" ["parentID"]=> string(0) "" ["submit"]=> string(1) "1" } EDIT: NVM. I forgot there's no ID, only name. {name} is supposed to be in the ID to. Quote Link to comment Share on other sites More sharing options...
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.