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 Link to comment https://forums.phpfreaks.com/topic/7783-getting-data-from-a-post/ 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]? Link to comment https://forums.phpfreaks.com/topic/7783-getting-data-from-a-post/#findComment-28381 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] Link to comment https://forums.phpfreaks.com/topic/7783-getting-data-from-a-post/#findComment-28385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.