title: How to get value of input control outside of a form without submitting it?
body: <p>I spend almost an hour googling it but i found nothing helpful,
  Here's my code</p>
  
  <pre><code>&lt;div class = "form-group col-md-12"&gt;
      &lt;input type="text"  name="filename" id="filename"&gt;&lt;/input&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Its outside the form, what i want to do is that what i type there should be put here</p>
  
  <pre><code> $fopen=fopen( $uploadpath.here.'.png','wb');
  </code></pre>
  
  <p>So i can manage the filename thus it wont be static.</p>