0

http://localhost/fpo2/approve_beneficiary_approve_form.php?ben_id=1

here is the code:

$("#submitbut").click(function(ev){
    ev.preventDefault();
    //  alert("hi");
    var ben_id =  <?php $_GET['ben_id']; ?>
    alert(ben_id);
});

i want to get ben_id through the javascript code, I don't know how to do this, i am trying to use php code with it , but it is showing undefined.

Mike 'Pomax' Kamermans
  • 49,297
  • 16
  • 112
  • 153

0 Answers0