Passing multiple values accross a hyperlink ?

D

David

Hi,

I have a link as follows:

<A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" &
RS("PONumber") & """>" & RS("MovementID") & "</A>

I am trying to pass: MovementID & PONumber.
On linking to Tracker.asp,

MovementID = 2257 PONumber=21071045
PONumber = Empty

I am just testing this with Request.querystring.

What have I done wrong, how can I separate these values ?


Thanks

David
 
R

Ray at

The items need to be separated with a & in the URL, like so:

<A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & "&PONumber=" &
RS("PONumber") & """>" & RS("MovementID") & "</A>

Ray at work
 
D

David

hi,
where are the ASP open and close tags in your A Href, RS("MovementID") etc.
are not enclosed in ASP tags therefore are not ASP code. Try this:
<A
HREF="Tracker.asp?MovementID=<%=RS("MovementID")%>&PONumber=<%=RS("PONumber"
)"><%= RS("MovementID")%></A>

Hope this helps

David
 
D

David Gordon

Thanks Ray,

I did try to send a thanks yesterday, but for some reason I could not
post....so Thanks very much for your prompt support....Excellent code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top