Question:
how to update checkbox value in php from mysql data?
?
2013-12-30 04:25:05 UTC
Friends
i have register form with checkbox. I already insert data from checkbox. Now i want to edit data. I want to show checked checkbox only which, value found from data fetch query in php.
Five answers:
?
2013-12-30 06:10:33 UTC
/>Write
?
2013-12-30 04:46:57 UTC

value=""




value=""
anonymous
2014-03-20 03:01:21 UTC

$IsActive=$row['IsActive'];

if($IsActive==1)

{

echo '
name="IsActive" value="0" checked="checked"/>';

}

else

{

echo '
name="IsActive" value="1" />';

}

?>
SINETH
2014-07-06 23:16:55 UTC
pretty good to say in this coding...
Krishna Ghael
2014-01-31 05:29:45 UTC
it is not working...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...