This is the first time I have used a new socket connection to send
header data *and* then retireve the echoed string.  This works fine.  I
get the result string and I am able to parse out the first element,
which is the status code.

Now here is where I am stuck!  I cannot go to another page!  I have
tried opening another socket and I have tried creating a Form with

     <Form Action="newpage.php" Method="Post">

All of them give me an error.

Help!!!!!!!!!

Todd

<?
    /* The $info variable contains the information to send to
       Authorize.net */
    $info = "SID=". $sid .
         "&x_ADC_Delim_Data=TRUE"  .
         "&x_Amount=" . urlencode($pu_amount) .
         "&x_Test_Request=" . $test .
         "&x_Card_Num=" . $pu_ccno .
         "&x_Exp_Date=" . $pu_exp .
         "&x_Login=" . $login .
         "&x_ADC_URL=FALSE" .
         "&jump=" . urlencode($jump);

    /* Now we will open a socket to Authorize.net and send
       the information using my class, $http */

    $http = new http;  // This is a class

    $fp = $http->http_fpost($server, $sendto, $info);

    /* Read the comma delimited string echoed back */
    if($fp) {
      print '<BASE HREF="' . $url . '"><p>';

      $result = fread($fp,10000);
      fclose($fp);

      $tokenarray = split(",",$result);
      $response = $tokenarray[0];
      // Response contains "1" which is success
    }
?>

Now I cannot go any further.
I need to go to a page, password.php!!
All efforts give an error message.

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to