display web address with link from database!

This is a discussion on "display web address with link from database!" within the Classic ASP section. This forum, and the thread "display web address with link from database! are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 29th, 2004, 05:37
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
display web address with link from database!

I have a form that will ask the user to enter some web address, for example "www.yahoo.com". this data will be stored in the database, and then will be display in a display.asp page!

How can i make the web address active in the display.asp page?
The user can click at the link, and the website will be opened!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

  #2 (permalink)  
Old Aug 29th, 2004, 06:13
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
This is done like this...
Code: Select all
Response.Write("<a href=")
Response.Write(recordSet("Address"))
Response.Write(">")
Response.Write(recordSet("Address"))
Response.Write("</a>")
There ya go
  #3 (permalink)  
Old Aug 29th, 2004, 08:29
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Or better still, for less code (and quicker):-
Code: Select all
">LinkText
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #4 (permalink)  
Old Aug 29th, 2004, 13:39
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, but the LinkText won't be database driven so that's not what he asked for [:P]. lol.

I was taking it slow with him (look at his last posts).

Code: Select all
"><%=RecordSet("LinkName")%>
When you type in the <%= it automatically assumes Response.Write . Just make sure your connected to your database before this and make sure you close the connection after this.
Closed Thread

Tags
display, web, address, link, database

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] display a image record from a database with a set size longstand PHP Forum 8 Oct 19th, 2007 19:18
IP address into MS Access database Quetzal Classic ASP 2 Jan 19th, 2007 09:34
Sending database record ID as a membership number t an email address frinkky PHP Forum 3 Nov 30th, 2006 02:45
display first only part of a database record. Daddyohhh99 Other Programming Languages 0 Feb 3rd, 2006 14:49
display the number of record exist in the database Monie Databases 1 Aug 24th, 2004 08:10


All times are GMT. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43