php - issue in echo html attribute -


im trying added style attribute in conditions html input im using code

if($verrou==true){echo '"style= font-weight: bold; color:#000;" '; echo "disabled"; $verrou=false;}  

i'm expecting output this:

"style= font-weight: bold; color:#000;" disabled 

but im getting this

"style="font-weight:" bold;="" color:#000;"="" disabled="" 

i can't figure out why happening , why code printing me things not in it

so problem having attributes not formatted correctly in code - , if @ results in browser dom inspector, instance, browser it's darn best understand , "fix" wrong attributes gave it...

so should expecting:

style="font-weight: bold; color:#000;" disabled 

note position of double-quotes... this, code work:

if($verrou==true) {     echo 'style="font-weight: bold; color:#000;" '; // again, notice position of double-quotes     echo "disabled";     $verrou=false; } 

hope helps!


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -