Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trim doesn't work?

Status
Not open for further replies.

bdichiara

Programmer
Oct 11, 2006
206
US
I'm trying to check to see if a user entered [space][space][space] into an input but trim doesn't seem to be doing the trick.

I have it as:
Code:
if(trim($_POST['description'] == ""){...

Why wouldn't that be working?

_______________
_brian.
 
crap. you know i just caught it as soon as i posted... i didn't close my parenthesis properly.

_______________
_brian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top