Skip to content

Tag: html-select

Selection option in php

I am working on a PHP quiz game and at the moment i am struggling a bit mixing php and html together as i have more previous experience in html. I have the following select option for quiz selection: I was told that this can be made with php code so that the new quizes are added onto it when

correct way of saving dropdown in php

I am using 2 kinds of dropdowns. The Yes/No and one with multiple values. Either way I use this: or The value of the Yes/No I store as a bit (before as tinyint) in my mysql-db. The multiple-choice I store as int. I get the values out of my object $member and try to select the right value: This works

getting value of with $_POST gives text

So, I’m retrieving these options from a database and I need to retrieve the value but I’m getting the text in between the tags by doing this therefore if I print $inst I get the “IUTIRLA” for the first option but I need the 41 I don’t know what I’m doing wrong… this i…