Jump to content

Handling response codes


clay1

Recommended Posts

I am posting data to a site using curl

 

Their instructions say:

 

'Response:

You will receive an escaped query string response back on the page containing 4 values:

 

Error = 1 or 0 (1 = true, 0 = false)

Error_desc = txt message describing error

Accepted = 1 or 0 (1= true, 0 = false)

Accepted_msg = response

 

So your final response page will contain 1 string as such:

&Error=1&error_desc=missing%29field%20emailaddress&accepted=0&accepted_msg=invalid%20post'

 

I need to do different things depending on this response but I am not sure how to capture or parse it?

 

I thought maybe it was being sent back to me as a $_post but it's not

Link to comment
https://forums.phpfreaks.com/topic/194956-handling-response-codes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.