No easy way of doing it, regex somthing like:

$id = preg_replace("/.*<input.*name=\"id\" value=\"[0-9]+\" \/>/", $1, $string);

where $string is a line from your input'd HTML page

Abdul-Wahid



On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I was wondering if any classes/functions could help me with this little
> challenge, (im hopeless at regex ;-)
> 
> <input type="hidden" name="id" value="593" />
> 
> I want to extract the value of 'id' from a webpage. Any simple way to do
> this or am I down to sweating of the regex functions?
> 
> Much thanks....
> --
> Nick W
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to