CheckBox submit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mariolopes
Forum Contributor
Posts: 102
Joined: Sun May 22, 2005 7:08 am

CheckBox submit

Post 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
mariolopes
Forum Contributor
Posts: 102
Joined: Sun May 22, 2005 7:08 am

Re: CheckBox submit

Post by mariolopes »

Solved
echo "<input type='submit' value='Envia'/>";
Post Reply