Nov 6, 2002 #1 sabavno Programmer Jul 25, 2002 381 CA I need a help with syntax response.write("<a href='PO_Test2.asp? how do I pass the parameters transit=intTransit, months=intMonth, years=intYears Please help THanks
I need a help with syntax response.write("<a href='PO_Test2.asp? how do I pass the parameters transit=intTransit, months=intMonth, years=intYears Please help THanks
Nov 6, 2002 #2 mwolf00 Programmer Nov 5, 2001 4,177 US response.write("<a href='PO_Test2.asp?transit="&intTransit&"&months="&intMonth&"&years="&intYears&"'>" Upvote 0 Downvote
response.write("<a href='PO_Test2.asp?transit="&intTransit&"&months="&intMonth&"&years="&intYears&"'>"
Nov 6, 2002 #3 GabeC Programmer Apr 17, 2001 245 US You should also URL encode your data. response.write("<a href='PO_Test2.asp?transit=" & server.URLencode(intTransit) & "&months=" & server.URLencode(intMonth) & "&years=" & server.URLencode(intYears) & "'>" Thanks, Gabe Upvote 0 Downvote
You should also URL encode your data. response.write("<a href='PO_Test2.asp?transit=" & server.URLencode(intTransit) & "&months=" & server.URLencode(intMonth) & "&years=" & server.URLencode(intYears) & "'>" Thanks, Gabe
Nov 6, 2002 #4 krisbrixon Programmer May 10, 2002 371 US Like this: strValue = "howstuffworks" Response.Write("<a href='http://www.yahoo.com/search.asp?p=" & strValue & "'>How Stuff Works.Com</a>" You figure out the url and then you replace the variables with " & strVarName & " As far as how to send variables in a querystring 1. start with url (http://www.manatron.com/1.asp)2. add a ? (http://www.manatron.com/1.asp?)3. add varialble name and equal sign (http://www.manatron.com/1.asp?bTrue=)4. add the value of the variable, if any (http://www.manatron.com/1.asp?bTrue=Y)5. add more variables with out spaces using the & symbol. (http://www.manatron.com/1.asp?bTrue=Y&bFalse=N) on 1.asp to use the variable you would use: Dim bT,bF bT = Request.Querystring("bTrue" bF = Request.QueryString("bFalse" Kris - To err is human, but to really foul things up requires a computer. Upvote 0 Downvote
Like this: strValue = "howstuffworks" Response.Write("<a href='http://www.yahoo.com/search.asp?p=" & strValue & "'>How Stuff Works.Com</a>" You figure out the url and then you replace the variables with " & strVarName & " As far as how to send variables in a querystring 1. start with url (http://www.manatron.com/1.asp)2. add a ? (http://www.manatron.com/1.asp?)3. add varialble name and equal sign (http://www.manatron.com/1.asp?bTrue=)4. add the value of the variable, if any (http://www.manatron.com/1.asp?bTrue=Y)5. add more variables with out spaces using the & symbol. (http://www.manatron.com/1.asp?bTrue=Y&bFalse=N) on 1.asp to use the variable you would use: Dim bT,bF bT = Request.Querystring("bTrue" bF = Request.QueryString("bFalse" Kris - To err is human, but to really foul things up requires a computer.