I wanted my script to scan a string of html ($request) and pick out the ACTION URL value. (<FORM ACTION="www.blah.com" METHOD=get>) I want to get the www.blah.com
There may be multiple forms on one page and the " may also be '
I thought something like this would do it:
$expdoc = explode ("<FORM>", $request);
for ($lop = 0; $lop < count($expdoc); $lop++) {
eregi('.*action=\'\"\'\"', $request, $match);
$urlanswer[$lop] = $match[1];
}
foreach ($urlanswer as $letgo)
{ print $letgo; }
Can you verify my regexp in the eregi command.
Thanks,
G WiZZ