Skip to content
Advertisement

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

With PHP, why does option selected not always work?

While I realize that this isn’t the most efficient bit of code, it will not work for August or September! I’m using PHP 5.4 and XHTML 1.0 Transitional. I’ve tested it in the lasted IE, Firefox and Google browsers. I’ve checked the code that is sent to the browsers and there isn’t anything different about August or September. All the

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 is how I’m printing the html through

Advertisement