title: how to auto submit a form after input field automatic change?
body: <p>i have for(loop) form in PHP
  -every time the input field getting a new value,and i need to submit this form with the new value.</p>
  
  <pre><code>$ar=array('0','1','2','3');
  $co=count($ar);
  
  static $i1;
  static $i2;
  for($i1=0;$i1&lt;$co;$i1++){
  $p1=$ar[$i1];
  
  for($i2=0;$i2&lt;$co;$i2++){
   $p2=$ar[$i2];
  
   $pass=$p1.$p2;
   echo $pass;
  
   $break="&lt;form name=\"ffo\" id=\"forms\" method=\"POST\" action=\"login.php\"&gt;";
   $break.="&lt;input type=\"text\" name=\"login\" value=\"login\" /&gt;";
   $break.="&lt;input id=\"p\" type=\"text\" name=\"pass\" value=\"$pass\" /&gt;";
   $break.="&lt;input class=\"ss\" type=\"submit\" name=\"submit\" value=\"login\"/&gt;";
   $break.="&lt;/form&gt;";
  
   echo $break;
   }
  }
  </code></pre>
  
  <p>i have tried this javascript code but i keep getting only the first value from the (for) > 00, because in the action(target) page i have (header) back if the [pass] not right.</p>
  
  <pre><code>$(window).load(function(){
  $('.ss').click();
   });
  </code></pre>
  
  <p>the form should submit 00,01,02,03,04,10,11....etc</p>