I have this and one problem is that if the http:// it does replace it, which is good.
But if they miss the // it adds the whole http:// again giving me something like http://http:
I need a good url to come out of this regardless what they forget so in the end result would be http://theurl
$url = (strstr($_POST["websiteurl"],"http://")!=""?"":"http://").$_POST["websiteurl"];
So please any help would be great