Hi!
This might be an easy question to you guys.
I got 52 if sentences in a update script for car brands;
Here is one of the includes:
<?
if ($astonmartin == 1)
{
echo '<input name="astonmartin" type="checkbox" id="astonmartin" value="1" checked>' ;
}
else
{
echo '<input name="astonmartin" type="checkbox" id="astonmartin" value="1">' ;
}
?>
This if will as you can see check the box if the value are 1 and show an unchecked box if the value are 0 in the database.
The problem is. I want to be able to uncheck some boxes as this is a update script.. Altso if I uncheck the checkbox I want the form to send eg astonmartin=0 (the value 0) and if I check it will send astonmartin=1 (the value 1).
This is probaly easy to get working, but I realy dont got a clue what will help here.
Hope somebody can helt and show me 🙂
P.S Exuse my bad english. Its not my native language.
Regards
A. Lyse