How to right php regex to extract hidden fiedls name , value pair from html ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As per usual, DO NOT USE REGEX TO PROCESS HTML
Use dom:
EDIT: Just saw your comment about the malformed html: Use HTMLPurifier to clean up the HTML. Hopefully it’s not so mangled that Purifier can’t clean it up to a state that DOM will accept it.