title: serialize form to POST after getting content using CURL
body: <p>I want to POST an URL using CURL and php.</p>
  
  <p>There is a big form on webpage and I don't want to manually copy all the variables and put it in my POST request.</p>
  
  <p>I am guessing there has to be a way to serialize the form automatically (using DOM or something) and then just change whatever values I need.</p>
  
  <p>I could not google my way out of this one so I was wondering would anyone be kind enough to help.</p>
  
  <p>So, is there anyway to automatically serialize a form which is buried in a bunch of html content I just pulled from a URL?</p>
  
  <p>Thanks for any help,
  Andrew</p>