Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-29-2007, 12:10 PM #1
- Join Date
- Oct 2006
- Thanked 0 Times in 0 Posts
Need a function. $60 (regex needed)
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(  => 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
09-30-2007, 12:54 PM #2
- Join Date
- May 2006
- Thanked 82 Times in 79 Posts