How can I sanitise a form entry before inserting the data into a database table? [closed]

asked 2014-07-15 16:35:19 +0200

IanP gravatar image

updated 2014-07-15 22:18:14 +0200

bencomp gravatar image

I have a form which adds records to a table. It has some text fields. How do I make the form trim any leading and trailing whitespace from these text fields?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2016-02-29 16:56:02.476088