I suppose you might want to add this https:// option also...
If (Left(ws, 4) <> "http") and (Left(ws, 5) <> "https") and (Left(ws, 3) <> "ftp") and (Left(ws, 4) <> "nntp") Then
...
Here is some code I use in an ASP page that retrieves a URL from a database. I made it based on what had been entered as a web link into the database. The entries were not always the same, so my code makes them all the same, with http:// on the beginning.
<%
' Set up the hyperlink data...
Try this, and do away with the frontpage stuff:
co_ID = request.querystring("co_ID")
s-sql = "SELECT * FROM co_table ORDER BY " & co_ID
You could also append the sort order to the end if you wish (DESC or ASC):
s-sql = "SELECT * FROM co_table ORDER BY " & co_ID...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.