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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.