OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

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

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
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

 

What is wrong with this statement?

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

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

All Forums >> Web Development >> ASP, PHP, and Database >> What is wrong with this statement?
Page: [1]
 
mrjoe

 

Posts: 79
From: None
Status: offline

 
What is wrong with this statement? - 9/26/2001 20:48:00   
Hi,

Can anyone help please?

I am trying to use the following:

tempID="<a "http://record_edit.asp?ID="
tempID=tempID & rstemp("UniqueID") & ""
tempID=tempID & "</a>"

To build this statement below using response.write where rstemp is a record source:

<a href="http://record_edit.asp?ID=7"></a>

But I am gettting confused with all the quotes.

Thanks,
Joe C.

ginnie

 

Posts: 527
From: St. Louis MO USA
Status: offline

 
RE: What is wrong with this statement? - 9/26/2001 23:24:00   
Try this:

tempID="<a href='http://record_edit.asp?ID="
tempID=tempID & rstemp("UniqueID") & "'>"
tempID=tempID & rstemp("UniqueID") & "</a>"

That should ultimately come out to:

<a href='http://record_edit.asp?ID=7'>7</a>

Of course maybe you'd rather use something other than the UniqueID to display as the link ... like maybe rstemp("ProductName") or the like.

Are we having fun yet?

[This message has been edited by ginnie (edited 09-26-2001).]


(in reply to mrjoe)
Mojo

 

Posts: 2472
From: Chicago
Status: offline

 
RE: What is wrong with this statement? - 9/26/2001 23:26:00   
In your first line you left out the href part:
tempID="<a "http://record_edit.asp?ID="

Besides that, it may be better to do it like this:

tempID = "<a href=http://record_edit.asp?ID=" &rstemp("UniqueID") &">YOUR LINK</a>"

Then you could print tempID anywhere on your page.

Joe

Whoops! ginnie you got me typing!

[This message has been edited by jbennett (edited 09-26-2001).]


(in reply to mrjoe)
ginnie

 

Posts: 527
From: St. Louis MO USA
Status: offline

 
RE: What is wrong with this statement? - 9/26/2001 23:38:00   
Hey Joe,

It probably pays to type slower . . . then we wouldn't have to go back and edit our messages.

ginnie


(in reply to mrjoe)
mrjoe

 

Posts: 79
From: None
Status: offline

 
RE: What is wrong with this statement? - 9/26/2001 23:47:00   
Thank you so much,

It is clear now where I was going wrong and I like your way so much better.


(in reply to mrjoe)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> What is wrong with this statement?
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