SlimSlyk Posted June 25, 2006 Share Posted June 25, 2006 Hello,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?Thanks! Link to comment https://forums.phpfreaks.com/topic/12845-auto-add-http/ Share on other sites More sharing options...
SlimSlyk Posted June 25, 2006 Author Share Posted June 25, 2006 Nevermind. Figured it out. My signature helped me! :D Link to comment https://forums.phpfreaks.com/topic/12845-auto-add-http/#findComment-49256 Share on other sites More sharing options...
benjrox Posted June 25, 2006 Share Posted June 25, 2006 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 ;) Link to comment https://forums.phpfreaks.com/topic/12845-auto-add-http/#findComment-49258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.