Jump to content

can't figure out this scriptlet


useroo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.