Hello
I need some support please.
I have set up to send me an email when a record is added.
Everything works well. BUT on a field with Check box. If it is checked in database is 1 and if it is not in 0.
How can i make in email to show me in sted of 1 to be shown YES and if it is 0 to be shown NO in the email ?
Thank you
I apriciate your help!!!!
Checkbox
Re: Checkbox
Code: Select all
$status = $data['check fieldname'];
if ($status == 1) {$status = "YES";}
else $status = "<strong>NO</strong>";
Code: Select all
<?php echo $status; ?>
Re: Checkbox
Hi,
why not use radio buttons (but this will make you need to change the datatype): Olaf
why not use radio buttons (but this will make you need to change the datatype): Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view