I have a textarea field and want to add a text or php code when the field is empty and if the field is not empty to add another php code. For example:
if the field is empty>do something…..else>do something…
I’m not good at php, so I’ll be glad for any help.
Thanks.
p.s.Sorry for my english.
Assuming you’re posting this from a form then you can do the following.
I’ll write this out the long way so it’s easier to understand: