Jump to content

Getting data from a Post


insky10

Recommended Posts

Hello,

I would like to know if anyone could help me get data from an HTTP Post.
Lets say I have an incoming string of data like such:

Name="Wendy" Color="Blue" Address="333 west"

I want to capture that entire string and then write it to a file. I can write to a file
fine, I am having trouble capturing the entire string. I have used the $_Post and
$HTTP_POST_VARS with no luck, it seems that I can only capture the first part of the string:

ie:
$data = $HTTP_POST_VARS['Name'];
or
$data = $_POST['Name'];

would get this result: "Wendy" Color="Blue" Address="333 west"

I want to capture the whole string like this:
Name="Wendy" Color="Blue" Address="333 west"

If I could parse it before I write it to the file, that would be even better..but I will
take the whole string.

Any help would be appreciated.

thanks
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.