i have a link that allows me to downlowd a text file in my web page but the problem is that i want the user to be able to chose where to save the file i mean when he clicks the link a window should be opened so he can save the file wherever he likes can any one tell me how to do that? thx . here is a part of my code:
$fichierres=fopen('res.txt','a');
ftruncate($fichierres,0);
...
fputs($fichierres, $t."\r\n");
...
fclose($fichierres);
echo' <div style="text-align:center"><br> <button id="download" width="100px" class="styled-button-8"><a href="res.txt" download="res.txt" style="color: #FFFFFF"><b>Download</b></a></button></div><br>';