So I've got this:
$pageurl = "http://www.example.com";
$group = $_POST['group'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $pageurl);
curl_setopt($ch, CURLOPT_POSTFIELDS, "group=$group");
$result = curl_exec ($ch);
curl_close($ch);
Which returns a web page. What I want to do is display only a certain part of that page, for example a single table. How would I go about that?