i have a php form .. and when the user submits that forum ... the info is added in a mysql db ..
lets say i type in :
but i want some code to check if there is a 'space' before the php (meanin in the beginnin) or after the rulezz (meanin at the end of text) .. if there is it should remove it .. so if i type in :
" php rulezz" then it would remove the first space
if "php rulezz " then it would remove the last space ..
any ideas ?