is it possible to pass a php variable to asp code

Discussion in 'PHP' started by white10, Apr 19, 2007.

  1. #1
    hi there everyone
    I have this problem, i want to pass a php variable from one site to another site, but the other site was build with asp, i want to know if it is possible if one can pass a pHp variable to asp code..
    can anyone of u guys help me please
     
    white10, Apr 19, 2007 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, you just pass it in the url like site.com/script.asp?var=xyz
     
    mad4, Apr 19, 2007 IP
  3. white10

    white10 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks man,
    but i need to to pass the php variable as a hidden field in a form to the asp page. Any ideas how to do that, remember i dont hav access to the asp page. I only have the variable from the asp page that will display the result. any ideas how i can do that
     
    white10, Apr 19, 2007 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, just make the form use the GET method.
     
    mad4, Apr 19, 2007 IP
  5. white10

    white10 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for the help mad4!! :),
     
    white10, Apr 19, 2007 IP
  6. Vetsin

    Vetsin Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You should know this could quite well be a security risk and a vulnerability to your site.
     
    Vetsin, Apr 20, 2007 IP
  7. white10

    white10 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks for the advice, Ill rather use the Post Method, thanks
     
    white10, Apr 20, 2007 IP