Jacobb123
02-29-2008, 04:59 AM
I need to match what is in the double quotes after value in the following lines. Of course it will be different depending on the values of the page.
<input type="hidden" name="timestamp" value="1204248942133"/>
<input type="hidden" name="js" value="aLGqVpq6QtJb">
<input type="hidden" name="userid" value="194172226">
I have the following code but when I try and print the data it just says array. not sure where i have gone wrong
preg_match_all('/<input[^>]+value\s*=\s*"([^"]*)"[^>]*>/',$page,$matches);
echo $matches[1];
<input type="hidden" name="timestamp" value="1204248942133"/>
<input type="hidden" name="js" value="aLGqVpq6QtJb">
<input type="hidden" name="userid" value="194172226">
I have the following code but when I try and print the data it just says array. not sure where i have gone wrong
preg_match_all('/<input[^>]+value\s*=\s*"([^"]*)"[^>]*>/',$page,$matches);
echo $matches[1];