a quick one. i have a form where users can enter a web address. a link to their own website to be exact. users tend to enter all sorts of wrong things. so i need it to format it into the correct format.
ie: somepeople might enter these:
1. <a href="www.mysite.com">mysite.com</a>
i need it to format that input, and insert into the database the correct info in this format:
whats the easiest or best way to do this?