Moderators mark1million Posted November 1, 2011 Moderators Report Posted November 1, 2011 HI i want to refine the registration code to further sanitise against white spaces at the end of the names firstname lastname. I have been looking at the rtrim functions in php, just wondering the best way to add this or even if there is a better function to use in the existing registration array. $data = array( 'firstname' => $this->post->firstname, 'lastname' => $this->post->lastname, Cheers. Quote
Tom Posted November 1, 2011 Report Posted November 1, 2011 trim() does exactly what you want (I doubt you want whitespace at the start either...) Quote
Moderators mark1million Posted November 1, 2011 Author Moderators Report Posted November 1, 2011 Im having a blond moment Its not the registration but another script i run that i need to run this on Cheers Tom. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.