Radio Button Value For Add
Can anyone say if this code is right or wrong? If(isset($_POST) && ($_POST[‘GET_PAYMENT’] == ‘1’)) { $totalAmount = $_POST[‘GET_PAYMENT’]; //Total amount
Solution 1:
Look at this code, I think it's possible because of the "
and '
characters which is pasted poorly from another different-character-encoding source. You should type it again to see if the errors happen.
Solution 2:
It looks like you copy pasted this code from another source and the quotation marks are messed up. Use this instead
$.ajax({
type: "POST",
url: "ajax.php",
data: "GET_PAYMENT=1&VALUE="+ checkboxVal,
success: function(total_amount)
{
//Assigning the final value to the hidden value here
$('#totalamount').val(total_amount);
//Here changing the display of total amount
$('#repair_total_amount').html("Total <span class='repair-finalamount-txt'>£ "+ total_amount+"</span>");
}
});
Post a Comment for "Radio Button Value For Add"