POST to a PHP page using jQuery

POST to a PHP page using jQuery

Hi

I am using below code to get the card number if exists:

  1. <script>
  2. $(document).ready(function()
  3. {
  4.   $("#ButtonContinue").click(function()
  5.   {
  6.       if(!$("#EmiratesID").val())
  7.       {
  8.         alert('Please enter Emirates ID Number!');
  9.         return;
  10.       }

  11.         alert('Thank you');

  12.         $.ajax({
  13.             method: "POST",
  14.             url: "https://www.angelsemirates.com/get_founder_details.php",
  15.             data: { emiratesid: $("#EmiratesID").val() },
  16.             dataType: "json"
  17.         }).done(function(data)
  18.         {
  19.             
  20.             // HERE it should POST to founder.php with the value of data[0].emirates_id;
  21.             
  22.         });
  23.     });
  24. });
  25. </script>

After this I want to redirect to founder.php page which has $_POST["emiratesid"] .

How can I do this redirect so the founder.php will get the value as POST and NOT as:

founder.php?id=xxxxxxx


Thanks