How can I hide the “id?=1” in my URL in PHP [duplicate]

I have this code wherein I need to pass a data from one php to another so i declare it as

 <a  href=file1.php?id=$_POST['AccountID']).">
 <i class='fa fa-eye'></i></a>

but my problem is id=1 (the ID and the value of the ID shows in the URL) are there any ways to avoid this? I already tried using htaccess but it seems not working maybe because my website is built in MVC. I want to try to pass the data using jQuery but I don’t have any idea. Thank you for helping