Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
finding a record and opening a hyperlink
Old 07-21-2007, 10:14 AM finding a record and opening a hyperlink
Junior Talker

Posts: 3
Name: Matthew
Trades: 0
Hey guys

I dont know much about programming but i am trying to set up a small system using dreamweaver. I think its fairly simple to do but i can get my head around it.

I need to create two pages, one containing a text input field and the other containing a 2 columed table. The table contains website links and each has a unique numeric ID. When that ID is typed into the text box i would like the website for that ID to open. I have created a database in access and a spreadsheet of the data in excel. There will be about 1000 records which will need to be regularly updated in access and either linked to the page using the database or spreadsheet, or transfered into a seperate table on another page. I have tryed using an if function to relate the ID to opening the webiste, but cant seem to advance much further.

Any ideas suggestions would be greatly appreciated

Thanks!
mattscott is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2007, 10:24 AM Re: finding a record and opening a hyperlink
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You don't need two pages

Links <a href="/itempage.asp?itemno=nnnn">Item No nnn</a>

at top of page
<%
if request.querystring("itemno") <> "" then
ItemNo = Cint(request.querystring("itemno") )
else
ItemNo = 0
end if
%>


<body>
show your form here
<%

If itemNo > 0 then
'get your database record and display it
end if
%>

very simplified but shows the basics.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to finding a record and opening a hyperlink
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09694 seconds with 12 queries