RE: [PHP4BETA] html objects?
| From: | Mike Robinson | Date: | Tue, 21 Mar 2000 01:32:23 +0000 |
| Subject: | RE: [PHP4BETA] html objects? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12457@lists.php.net to get a copy of this message | ||
> Howdy folks,
> Is there a way for php to find all of the html objects in an
> html page and
> put them in an associated array? I basically want to parse out
> forms, to find out
> what form objects (input fields) a document has.
>
> Any ideas?
Have a look at fopen()/fread() for sucking the file into something
you can traverse, and eregi() for probing it, noting that with the
optional 3rd argument, eregi() matches are placed into an array.
/Mike