Answer the question
In order to leave comments, you need to log in
How to send bare text if empty (php)?
if(empty($getdata[$name]['value'])) {
unset($getdata[$name]);
}
Answer the question
In order to leave comments, you need to log in
I finished it myself (I don’t know how crooked it is, but it seems to be nothing like this):
if(empty($getdata[$name]['value'])) {
$emptyField = 'не заполнено';
$getdata[$name]['value'] = htmlspecialchars($emptyField);
}
Seems
if($getdata[$name]['value']<>''){
echo "Не заполнено";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question