Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. $DOM = new DOMDocument;
  2. $DOM->loadHTML($html);
  3. $inputs = $DOM->getElementsByTagName('input');
  4.  
  5. $hiddenInputs = array();
  6. for ($i = 0; $i < $inputs->length; $i++){
  7.     $item = $inputs->item($i);
  8.     $type = $item->getAttribute('type');
  9.     $name = $item->getAttribute('name');
  10.     $value = $item->getAttribute('value');
  11.    
  12.     if($type == 'hidden'){
  13.         $hiddenInputs[$name] = $value;
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top