A user submits values in a form. On the action page I want to check if there is a table on the page whose id matches any values submitted via $_POST. I've seen examples using file_get_html(), but this it not listed as a function on php function list. What is/are the correct way(s) to parse html within a php file/document?
This is what I have at the moment

$source = file_get_contents('File.php');
$document = new DOMDocument;
$document->validateOnParse = true;
$document = loadHTHML($source);

However when I iterate through the php array document->getElementById() doesn't recognise Ref[$i].
So how do I find a html id in a php document?

Your question is pretty unclear.
Do you have problem with matching posted id with table OR dou you want to parse html ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.