The situation is this, I go on eBay do a search, look at the source code, copy the area that I want to parse, paste it in my script, run the script and get what I want from it.
So basically in my script I have a variable like this
$source = "here I paste the source code that I copied from eBay (after escaping all the double quote)";
I used preg_match_all on the string I just pasted and everything works fine.
Now the problem:
I want to use a form with a textarea where I would paste the source code copied from eBay and than submit to my script (instead of hardcoding in the script than upload the script than run the script).
$source = $_POST; does not work, I tried
$source = htmlentities($_POST); and still not working
but if I echo $source the data is all there but it is not getting parse by the script.
So my questions are why is it not working and how to fix it?