POST to a PHP page using jQuery
Hi
I am using below code to get the card number if exists:
- <script>
- $(document).ready(function()
- {
- $("#ButtonContinue").click(function()
- {
- if(!$("#EmiratesID").val())
- {
- alert('Please enter Emirates ID Number!');
- return;
- }
- alert('Thank you');
- $.ajax({
- method: "POST",
- url: "https://www.angelsemirates.com/get_founder_details.php",
- data: { emiratesid: $("#EmiratesID").val() },
- dataType: "json"
- }).done(function(data)
- {
-
- // HERE it should POST to founder.php with the value of data[0].emirates_id;
-
- });
- });
- });
- </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