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; Quote 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 - Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.