chrisuk Posted May 2, 2007 Share Posted May 2, 2007 i am using trim() for some fields the problem is that no matter what i use trim() on, there is still one space at the very beginning of the text box this is causing some problems with my validation how do i get rid of ALL whitespace before a string begins? thanks Link to comment https://forums.phpfreaks.com/topic/49697-solved-trim-issue/ Share on other sites More sharing options...
Psycho Posted May 2, 2007 Share Posted May 2, 2007 There is no reason why you should have as space at the beginning of a string after using trim (using the default parameters). You need to post the code in question. Link to comment https://forums.phpfreaks.com/topic/49697-solved-trim-issue/#findComment-243666 Share on other sites More sharing options...
chrisuk Posted May 2, 2007 Author Share Posted May 2, 2007 actually, it was just me being a bit dumb, i used trim in the processing script and it's working properly now. thanks anyway Link to comment https://forums.phpfreaks.com/topic/49697-solved-trim-issue/#findComment-243675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.