Sax-like : accessing form fields elements
| From: | Robert Mena | Date: | Sun, 16 Feb 2003 20:55:41 +0000 |
| Subject: | Sax-like : accessing form fields elements | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135777@lists.php.net to get a copy of this message | ||
Hi,
I am developing an application which will have to
parse a html page and extract information about the
forms found.
I tried the HTMLSAX class
(http://www.phpclasses.org/browse.html/package/678.html)
which is ok except by the fact that I can not retrieve
the default/checked status from the elements.
Ie. <select name=foo><option value=bar ckecked>
Any ideias ?
Since the html will usually be ill-formed a standard
DOM-tree (with builtin functions at least) wont be possible.
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com