This question already has an answer here:
I have a form allowing users to enter in their referral link (URL). I need to be sure they entered the http:// first before the url. If they entered it then it's ok, if they did not enter it then I need to add it before placing the url in the database.
How can I check this in PHP before saving the form in the database?
</div>