Forums
This topic is locked
Hide field if empty
Posted 14 Oct 2005 21:06:22
1
has voted
14 Oct 2005 21:06:22 Don Fletch posted:
Hi Whats the best way to hide a Currency field from displaying if it is empty in php?
Thanks
Fletch
Replies
Replied 20 Oct 2005 15:04:36
20 Oct 2005 15:04:36 Roddy Dairion replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi
Whats the best way to hide a Currency field from displaying if it is empty in php?
Thanks
Fletch
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
That would be using the "empty function". e.g.
if (!empty(currency_field))
{
echo "Currency Field";
}
else
{
echo "";
}
Hope it helps.
Hi
Whats the best way to hide a Currency field from displaying if it is empty in php?
Thanks
Fletch
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
That would be using the "empty function". e.g.
if (!empty(currency_field))
{
echo "Currency Field";
}
else
{
echo "";
}
Hope it helps.