[PHP] Determining if a variable is blank.

2002-08-21 Thread Jason
I have a simplistic forum, and I am trying to write some code to determine if the message box actually contains information, because if it is blank I obviously don't want to post it to the database. The message box has the name of 'reply'. Here is the code I'm trying to use, but its not working:

Re: [PHP] Determining if a variable is blank.

2002-08-21 Thread Rasmus Lerdorf
Use trim() instead of that str_replace and then an if(empty()) On Wed, 21 Aug 2002, Jason wrote: I have a simplistic forum, and I am trying to write some code to determine if the message box actually contains information, because if it is blank I obviously don't want to post it to the