Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy question about passing URL Info 1

Status
Not open for further replies.

Nilgni

Instructor
Feb 21, 2002
58
US
I have an alphabetic index on top of my page and it passes the letter to the next page just fine.

I also put the alpa index on the next page and when the user clicks it passes the letter IN ADDITION to the previous letter.

Here is an example:

A | B | C |D |

User clicks "A"

Link looks like:


The page loads with only the names that start with "A"

GREAT! BUT??

Now they click on B

Link now looks like:


NO GOOD! WHY is the darn thing putting two variables?
How do I wipe out the original "A" paramater

Thanks for the help, thought that I could easily search this out, but found this to be more difficult that I expected.
Keith
 
What is the code you are using to create the querystring? Your problem lies in that code.

I know the answer to this is pretty simple, but early on a Sunday morning, I'm not thinking clearly enough yet...

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
I am using Dreamweaver MX -

I started by using the GO TO RELATED PAGE server behaviour and then adapted it to this:

<A HREF="classmates_filtered.asp?Letter=A<%= MM_keepURL %>">A</A>

Thanks, foggy too LOL
 
BTW - I took the 'keep url statement out and test it, it still shows the same problem.
 
You appear to have hard-coded Letter=A so that will always be there no matter what you do. Assuming that the variable MM_keepURL is what you are passing to the URL each time, try something like this:
Code:
<A HREF="classmates_filtered.asp?<%=MM_keepURL%>">A</A>

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Okay,
I went back and just left the hard coding.
I had two pages that were so much the same that I was testing the wrong page. FOG!

It works now. Thanks, even you get a star for putting me on the right track!
 
:)

I've both been there and done that. Glad that you got your problem resolved. [thumbsup]

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top