Please let me know if i should not have. PHP's behaviour when using more than one ternary operator within a single  php,html,select,drop-down-menu It is because you aren't ending the value attribute, so your selected option becomes