find('input#' . $id); $node = $nodes[0]; return $node->value; } // Get the HTML for the page $html = file_get_html($scrapeSource); // Extract the values of the 3 hidden fields we need $expValue = getInputNodeValue($html, 'MCWEXPIRATION'); $slotValue = getInputNodeValue($html, 'MCWASSIGNEDSLOT'); $symdirValue = getInputNodeValue($html, 'MCWSYMDIR'); // Output the
with the specified hidden fields and immediately submit it ?>
:wq ! :wq!