I have an HTML form and send data to php file when hitting submit button.
$.ajax({ url: \"text.php\", type: \"POST\", data: { amount: amount,
Code example with JSON.stringify:
jQuery Test Amount: firstName: lastName: email:
$amount, "firstName" => $firstName, "lastName" => $lastName, "email" => $email ); echo json_encode($data); } ?>