parsing URLs
Posted: Tue Jun 17, 2003 8:45 am
[Admin Edit: moved from viewtopic.php?t=78]
Can you use this same idea if you are pulling a url out of a database?? I want to see if the url starts with http:// and if it does show it as a link on the screen as it is. But if it doesn't add the http:// to it and then show it as a link on the screen. I have tried several different ways to pull this information from a $row["AgentHomePage"] but it seems to be skipping the else in my If statement. Any help would be greatly appreciated.
Can you use this same idea if you are pulling a url out of a database?? I want to see if the url starts with http:// and if it does show it as a link on the screen as it is. But if it doesn't add the http:// to it and then show it as a link on the screen. I have tried several different ways to pull this information from a $row["AgentHomePage"] but it seems to be skipping the else in my If statement. Any help would be greatly appreciated.