What you can do is check to see if the first 7 characters are "http://". If not, add them.
if(substr($the_url, 0,7) != "http://") {
$the_url = "http://" . $the_url;
}
You might be better off having it display an error rather than automatically fix the url though, just in case the user simply typoed their entry.