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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response....need help with syntax

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
I need a help with syntax

response.write(&quot;<a href='PO_Test2.asp?

how do I pass the parameters transit=intTransit, months=intMonth, years=intYears


Please help

THanks


 
response.write(&quot;<a href='PO_Test2.asp?transit=&quot;&intTransit&&quot;&months=&quot;&intMonth&&quot;&years=&quot;&intYears&&quot;'>&quot;

 
You should also URL encode your data.

response.write(&quot;<a href='PO_Test2.asp?transit=&quot; & server.URLencode(intTransit) & &quot;&months=&quot; & server.URLencode(intMonth) & &quot;&years=&quot; & server.URLencode(intYears) & &quot;'>&quot;


Thanks,

Gabe
 
Like this:

strValue = &quot;howstuffworks&quot;
Response.Write(&quot;<a href=' & strValue & &quot;'>How Stuff Works.Com</a>&quot;)

You figure out the url and then you replace the variables with &quot; & strVarName & &quot;

As far as how to send variables in a querystring
1. start with url
(2. add a ?
(3. add varialble name and equal sign
(4. add the value of the variable, if any
(5. add more variables with out spaces using the & symbol.
(
on 1.asp to use the variable you would use:

Dim bT,bF
bT = Request.Querystring(&quot;bTrue&quot;)
bF = Request.QueryString(&quot;bFalse&quot;)

Kris
- To err is human, but to really foul things up requires a computer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top