INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to hyperlink a database field to an external url

How to hyperlink a database field to an external url

(OP)
With this code I can hyperlink the records (from the field Team) to my next program component => update_form.asp => it works fine

<a href="update_form.asp?Number=<%=FP_FieldURL(fp_rs,"Number")%>">
<%=FP_FieldVal(fp_rs,"Team")%></b></td>

I tried approximately the same code to hyperlink the records (from the field Place) to the (corresponding) external URL in the field URL_place - (for example : (tek-tips.com)
Result => (tek-tips.com)=32%22/ - page not found => because of '=32%22' ?

<a href=<%=FP_FieldVal(fp_rs,"URL_place")%>=<%=FP_FieldURL(fp_rs,"Number")%>">
<%=FP_FieldVal(fp_rs,"Place")%></td>

Thanks for help to find a working code - Leifoet

RE: How to hyperlink a database field to an external url

1) Your first example is missing a close anchor tag </a>, but yet has close bold tag </b> out of nowhere. Perhaps </b> was supposed to be </a>?

2) I will assume the first code should look something like this:

CODE

<a href="update_form.asp?Number=123456">SomeTeamName</a> 

So you want to replace the URL (blue part) with <%=FP_FieldVal(fp_rs,"URL_place")%> ... Right?
And you want to repalce the value (yellow part, numbers I just made up) with <%=FP_FieldURL(fp_rs,"Number")%> ... Right again?

If so, where is the query string variable name (green part)? Total guess, but this may be what you want:

CODE

<a href='<%=FP_FieldVal(fp_rs,"URL_place")%>?Number=<%=FP_FieldURL(fp_rs,"Number")%>'>
<%=FP_FieldVal(fp_rs,"Team")%></a></td> 

RE: How to hyperlink a database field to an external url

(OP)
Thanks guitarzan, the code works fine now - Leifoet

RE: How to hyperlink a database field to an external url

Great, thank you for the reply.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close