Jump to content


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


Auto-Add HTTP

Recommended Posts


I have a form where users will be submitting links to news articles. My question is, how can I check for the http:// in there and add it to the beginning if it isn't there?


Share this post

Link to post
Share on other sites
Haha, naturally, my eye's go for the code before the text, so I read you siguture first. I was going to say "ereg_replace" but I guess you worked it out [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

Well, actually ereg_replace may not be the right way, anyway, it was the first thing that poped into my head before I read your second post ;)

Share this post

Link to post
Share on other sites


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.