Sunday, February 21, 2010

Programmer - Php retreive input value

Programmer Question

Hello again,
Would anyone perhaps know how to get the value of a specific element in an HTML document with PHP? What I'm doing right now is using file_get_contents to pull up the HTML code from another website, and on that website there is a textarea:



<textarea id="body" name="body" rows="12" cols="75" tabindex="1">Hello World!</textarea>


What I want to do is have my script do the file_get_contents and just pull out the "Hello World!" from the textarea. Is that possible? Sorry for bugging you guys, again, you give such helpful advice :].

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails