1
as I leave permanently saved at 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>
1
as I leave permanently saved at 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>
0
Just add the attribute checked
input in this way is already marked when the page opens.
Recommended reading:
Browser other questions tagged php html
You are not signed in. Login or sign up in order to post.
Puts
checked="checked"
in the input– rray
Thank you very much, but would you be able to save the selected option, so that someone else can view ? or I have to connect to the database and then pull that data to the page.
– Luccas Cerqueira