Veritabanında bir onay kutusu değerini kaydetmek için Sorunları

0 Cevap php

I have doubts ... I am not able to save my information checkbox in the database, and so little rescue in a search screen, if that is done manually in the database ...

$ TRAMENTO1 = (@$ _POST ["TRAMENTO1 "]=='true') ? $ _POST ["TRAMENTO1"]: 'false';

<Input name="TRAMENTO1" 
    type="checkbox" 
    id="TRAMENTO1" 
    value="true" 
    php if ($TRAMENTO1 == true) {echo "checked"}> 
    />

Do so and only get from my bank to respond "false" even if my checkbox is checked. and only the first two checkbox yet. If you can help me I am very grateful.

Cleiton Capristano

0 Cevap