You are here: Re: Extract Select box with data from HTML « PHP Programming Language « IT news, forums, messages
Re: Extract Select box with data from HTML

Posted by Ian Collins on 03/22/06 23:40

niftyhawk@gmail.com wrote:
> Hi,
>
> Consider the following html EMBEDDED in a php variable say contents
>
> <html><body><form name="xyz" method="post" action="xyz.php"><select
> name=ListID><option value="T80240">BOOKSLIST</option><option
> value="T80238">LIST TEST</option><option value="T80239">NEW
> TEST</option><option value="T80236">T80233</option><option
> value="T80237">T80233</option><option value="T80235">TEST
> LIST</option><option
> value="T80233">mylist</option></select></form></body></html>
>
> How would I use preg_match to retrive all data from <select
> name=ListID> to </select> in one variable ignoring rest of the html?
>
Why not parse the HTML and use the DOM interface? Maybe not the fastest
for this example, but easier in the more general case.

--
Ian Collins.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация