a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Passing Variables in a Hyperlink

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Passing Variables in a Hyperlink
Page: [1]
 
Elecia

 

Posts: 68
From: orlando
Status: offline

 
Passing Variables in a Hyperlink - 3/20/2001 20:00:00   
Hi Folks,
I'm having a problem passing a variable. In the first link below I am setting the value of Ctr and requerying the same page. It works but not the way I think it should. Here is what it is doing...I have an If statement that checks to see if ctr is null if it is it executes one query if not it executes another. Well when I click on the link it loops through my code twice the first time it says ctr is null(even though I given it a value in the link) and then it loops through again for some reason and the value of ctr is there. Weird but at least this one is giving me the results I want. But the second link is passing the value of JobNo to another page and you can see the value of jobno if you hold the curser over the link but it never makes it to the next page. Anybody have any ideas? I've been messing around with this all morning. If you need to see more code I can post it.
Thanks,
EE

<A onclick="parent.frames[2].location='accounts.asp'; parent.frames[0].location='header.asp'<%session("T")= "Accounts Listing by Contractor"%>;" href="accounts.asp?Ctr=<%=accounts.fields.getvalue("Contractor_ID")%>"><%=Accounts.fields.getValue("CtrName")%></A></td>

<A onclick="parent.frames[2].location='JobView.asp'; parent.frames[0].location='header.asp';" href="JobView.asp?JobNo=<%=Accounts.fields.getValue("Job_ID")%>"><%=Accounts.fields.getValue("Lot")%></A></td>

Elecia

 

Posts: 68
From: orlando
Status: offline

 
RE: Passing Variables in a Hyperlink - 3/20/2001 20:29:00   
Never mind I figured out what my problem was.
Does anybody else find that the minute you open your mouth and ask a stupid question that the answer just comes to you?
Thanks anyway.
EE

(in reply to Elecia)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Passing Variables in a Hyperlink
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts