Hi
I have a script that gets a piece of html from a remote page by using the following commands:
<?
$GrabURL = \"http://www.vispcontroller.com/update_users.php\";
$GrabStart = \'<input type=\"hidden\" name=\"customer_id\"\';
$GrabEnd = \'<td><input type=\"submit\" value=\"Save\"></td>\';
$file = fopen(\"$GrabURL\", \"r\");
$rf = fread($file, 20000);
$grab = eregi(\"$GrabStart(.*)$GrabEnd\", $rf, $printing);
$printing[1] = str_replace(\"#cccc99\", \"white\", $printing[1]);
fclose($file);
echo $printing[1];
?>
Here is what the page gives out when it is included:
<form action=\"update_users.php\" method=\"POST\">
<input type=\"hidden\" name=\"customer_id\" value=\"47984\">
<input type=\"hidden\" name=\"action\" value=\"delete_customer\">
<td><input type=\"submit\" value=\"Del\"></td>
</form>
<form action=\"update_users.php\" method=\"POST\">
<input type=\"hidden\" name=\"customer_id\" value=\"47984\">
<input type=\"hidden\" name=\"action\" value=\"update_customer\">
<td>hlsuk</td>
<td>hlsuk.co.uk</td>
<td><input type=\"text\" size=8 name=\"plain_password\" value=\"smeg1197\"></td>
<td><input type=\"submit\" value=\"Save\"></td>
</form>
Is it possible to edit this further by setting it to start from the second \"<input type=\"hidden\" name=\"customer_id\" value\" ?