PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i'm using the following function to apply mysql_real_escape string and htmlentities to form fields. is there a way to modify it to trim white space (left and right) from form fields? i'm not quite sure how to go about doing it.
thanks. i was looking at trim, but i wasn't sure if it would need to cycle through all form fields or just add the trim function to my existing function. i'll give it a try.
cjkeane wrote:but i wasn't sure if it would need to cycle through all form fields or just add the trim function to my existing function.
Depending on your intentions you could of course place either your modified function or just trim by itself in a for/foreach loop, or something like that.