useroo Posted July 23, 2018 Share Posted July 23, 2018 How to rewrite this code so it will no longer auto-populate my URL submission form field with the pesky http:// (it messes up additions of sites with https:// as is) Here's the code if (strcmp("http://", substr($url, 0, 7)) !== 0) { $url = "http://" . $url; } and possibly also if (strpos($nueva,“http://”)=== FALSE) { $nueva = “http://” . $urlc . $nueva; Link to comment Share on other sites More sharing options...
Barand Posted July 23, 2018 Share Posted July 23, 2018 You have asked this question before - Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.