Forums
This topic is locked
URL LINK IN REPEAT REGION
29 May 2008 04:09:11 Linda Ms. posted:
I have built a simple database of information that contains URLs to special webpages on our own Intranet.I have built a webpage to display the data in a repeat region, including the URLs. (Of course they are just test (not links)
I want to be able to click on the URLs displayed in the repeat region so that the pages will then display, i.e. go to their pages.
I don't know how to structure the input field when creating the fields to create a link that will transfer back to URLs provided from the dynamic database.
I am using MSSQL, ASP, and Dreamweaver 8.
Thank you very much in advance. I'm a newbie!
Replies
Replied 29 May 2008 10:36:22
29 May 2008 10:36:22 Alan C replied:
Hi Linda,
I don't know asp - I'm a php freak <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> so you will have to make do with pseudocode from me although someone with asp will probably help too. I've done something just like this a while ago
You will have to build the links yourself from the text in the database field, I'm guessing that you store the url, so let's assume it's in a variable called $url and your link text is in $link_text
You will need to build the links . . .
<pre id=code><font face=courier size=2 id=code>
send <a href="
send $url
send ">
send $link_text
send </a>
</font id=code></pre id=code>
I don't know what asp uses to send output, in php it's echo so I've said 'send' - look out for those double quotes, in php both single and double quotes have special significance so you may have to 'backslash' them - you need to tell the interpreter to treat them as output characters rather than string delimiters
Probably best to write it as a function so you can pass in the url and link text as parameters
I don't know asp - I'm a php freak <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> so you will have to make do with pseudocode from me although someone with asp will probably help too. I've done something just like this a while ago
You will have to build the links yourself from the text in the database field, I'm guessing that you store the url, so let's assume it's in a variable called $url and your link text is in $link_text
You will need to build the links . . .
<pre id=code><font face=courier size=2 id=code>
send <a href="
send $url
send ">
send $link_text
send </a>
</font id=code></pre id=code>
I don't know what asp uses to send output, in php it's echo so I've said 'send' - look out for those double quotes, in php both single and double quotes have special significance so you may have to 'backslash' them - you need to tell the interpreter to treat them as output characters rather than string delimiters
Probably best to write it as a function so you can pass in the url and link text as parameters
Replied 30 May 2008 02:25:12
30 May 2008 02:25:12 Linda Ms. replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi Linda,
I don't know asp - I'm a php freak <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> so you will have to make do with pseudocode from me although someone with asp will probably help too. I've done something just like this a while ago
You will have to build the links yourself from the text in the database field, I'm guessing that you store the url, so let's assume it's in a variable called $url and your link text is in $link_text
You will need to build the links . . .
<pre id=code><font face=courier size=2 id=code>
send <a href="
send $url
send ">
send $link_text
send </a>
</font id=code></pre id=code>
I don't know what asp uses to send output, in php it's echo so I've said 'send' - look out for those double quotes, in php both single and double quotes have special significance so you may have to 'backslash' them - you need to tell the interpreter to treat them as output characters rather than string delimiters
Probably best to write it as a function so you can pass in the url and link text as parameters
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Hi Linda,
I don't know asp - I'm a php freak <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> so you will have to make do with pseudocode from me although someone with asp will probably help too. I've done something just like this a while ago
You will have to build the links yourself from the text in the database field, I'm guessing that you store the url, so let's assume it's in a variable called $url and your link text is in $link_text
You will need to build the links . . .
<pre id=code><font face=courier size=2 id=code>
send <a href="
send $url
send ">
send $link_text
send </a>
</font id=code></pre id=code>
I don't know what asp uses to send output, in php it's echo so I've said 'send' - look out for those double quotes, in php both single and double quotes have special significance so you may have to 'backslash' them - you need to tell the interpreter to treat them as output characters rather than string delimiters
Probably best to write it as a function so you can pass in the url and link text as parameters
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>