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! Quote Link to comment 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 Quote Link to comment 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 ;) 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.