This function I need will need some knowledge about regex.
The input for the function will be a url to a webpage. That webpage may have one or more forms in it. (or no forms) What I want the function to do, is grab that page, parse the html, and return the forms in an array with all the field names and field types
an array with all the forms on that page, the array will include the form action, method (post/get), field names, and field types. Preferably if one of the input fields is a select, then also an array of the select options.
It is important that it is able to detect multiple forms and not mix the fields together.
 => array(
['action'] => "http://www.urltoformaction"
['method'] => "post"
['fields'] => array( // first field
['name'] => id,
['type'] => hidden,
['value'] => 23
array( // second field
 => array(... //second form
PM or email me if this sounds possible for you. or if anything is unclear.
Can pay with epassporte or paypal