Jump to content


Getting data from a Post

  • Please log in to reply
2 replies to this topic

#1 insky10

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 April 2006 - 10:14 PM


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:

$data = $HTTP_POST_VARS['Name'];
$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.


#2 ypirc

  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 18 April 2006 - 10:31 PM

$name = $_POST['Name'];
$address = $_POST['Address'];
$color = $_POST['Color'];


#3 skhale

  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationBoston, MA

Posted 18 April 2006 - 10:39 PM

are you looking for something like:

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users