Page 1 of 1

CheckBox submit

Posted: Mon Feb 15, 2010 5:53 am
by mariolopes
Hi i have one grid and i want to confirm one value with one checkbox. When the user check the checkbox i want to make one update to my table. Please look this part of code:

Code: Select all

 
echo $row2['Confirmado'];
echo "<form action=validarhoras.php?teste=1 method=GET>";
if ($row2['Confirmado']=='N'){
            echo"<td>";
                    echo "<input type='Checkbox' name='confirmar'/>";
            echo"</td>";
                    }
echo "</form>";
 
 
When i check the checkbox how can i execute the action of the form?
Thank you

Re: CheckBox submit

Posted: Mon Feb 15, 2010 6:23 am
by mariolopes
Solved
echo "<input type='submit' value='Envia'/>";