How to keep the PHP checkbox data?

1

How do I permanently save the checkbox

---- \

<!DOCTYPE html>
<html>
<body>

<form action="">
<input type="checkbox" name="box" value="Bike">Pago<br>
<input type="checkbox" name="box" value="Car">Nao Pago 
</form>

</body>
</html>
    
asked by anonymous 06.11.2017 / 18:02

1 answer

0

Just add the checked attribute of the input this way is already marked when the page is opened.

Recommended reading:

MDN-checkbox

    
06.11.2017 / 18:05