Link to home
Start Free TrialLog in
Avatar of davelt00
davelt00Flag for United States of America

asked on

Get php response in asp

Within an ASP page I'm trying to receive a response after "calling" a PHP page.

I've tried print("answer");  and echo "Answer"; within the PHP page without being able to retrieve "Answer" in ASP.

My ASP code is :

dim xml, strRetval
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "GET", "http://www.myDomainName.com/sendRequest.php", false
 
strRetval = xml.responseText
response.write strRetval
Set xml = nothing
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here is a PHP script that will show you the GET request arguments.

<?php // RAY_bounce_get.php
error_reporting(E_ALL);
echo "<pre>" . PHP_EOL;
echo "HERE IS THE GET ARGUMENT FROM THE URL:" . PHP_EOL;
var_dump($_GET);

Open in new window