Forums

if checked save 1

lopezio 08 Jul, 2011
Hi
I have one checkbox in my form and if the checkbox is checked I want to save '1' on field Activo of my table. Here is the code on after send email


<?php
$categoria=$_POST['check00'];
if($categoria==??){
JRequest::setVar('Activo','1');
}
?>

What I have to write in ??
Thank you
Chrono 3 version
GreyHead 08 Jul, 2011
Hi Lopezio,

Edit the Form HTML and set the checkbox attributes to name='Activo' value='1'

Bob
lopezio 08 Jul, 2011
Thank you friend
Solved.
This topic is locked and no more replies can be posted.