title: force file download in php and joomla
body: <p>hi i'm trying to download a file in the joomla front end. in my default template i use php code for that. the code is </p>
  
  <pre><code>&lt;form&gt;&lt;input type="button" value="Download Now" onClick="window.location.href='&lt;?php echo $full;?&gt;'"&gt;
  </code></pre>
  
  <p>where <code>$full</code> is the full path=<code>http://localhost/joomla/images/uploads/images22.jpeg</code>. but this only displaying the file in the browser not downloading it. what should i change for making the button click to download ?</p>