I already know that trim() or chop() trims the whitespace. However, here's the problem: I'm writing my own news management system (for no better reason than experience) and am working on editing/updating the news items. Users login via a form, and can then select to eitehr edit/update/delete previous news that has been posted under their account. Between the page that they make their selection and the page that they actually are able to do something, a php script sends the appropriate HTTP header()s, with the variables inside of it.
The problem is that somewhere along the way, whitespace is being added. I'm reluctant to change all my if-thens due to some bug, but using trim() and chop() has yet to work.
Any help / questions for clarification would be much appreciated.