[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Passing ASP variables to PHP

Hi,
I believe this is simple but not for me.  I want to take variables that are in the URL from a asp page and "build" a <a href=/> link to a php page with the same variables.  This needs to be done in ASP.
Below is my hacky code that doesnt work just to give you a clue to what I am trying to do.
Once I pass those variables to my php page via the URL I can take it from there to pull the variables out in PHP.  Thanks!
<%Response.Write("<a href=""test.php?"" & Request.ServerVariables(""QUERY_STRING"") 
TARGET=_BLANK>Link</a>")%>

Open in new window

0
cscconsulting
Asked:
cscconsulting
1 Solution
 
cdaugustinCommented:
hi,

what your looking for is Request.QueryString for accessing GET variables from asp

all explained here http://authors.aspalliance.com/aspxtreme/sys/web/httprequestclassquerystring.aspx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now