insky10 Posted April 18, 2006 Share Posted April 18, 2006 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 filefine, 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 willtake the whole string.Any help would be appreciated. thanks Quote Link to comment Share on other sites More sharing options...
ypirc Posted April 18, 2006 Share Posted April 18, 2006 [code]$name = $_POST['Name'];$address = $_POST['Address'];$color = $_POST['Color'];[/code]? Quote Link to comment Share on other sites More sharing options...
skhale Posted April 18, 2006 Share Posted April 18, 2006 are you looking for something like:[code]$_SERVER['QUERY_STRING'][/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.