diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-09 12:38:58 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-09 12:38:58 +0200 |
commit | 395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b (patch) | |
tree | ce4ddc9f369b3287504922d59220f8511b53d9cc /src/frontend/checkout.php | |
parent | bfac37697930c75e2cba0180ffcd46345f0eb361 (diff) | |
download | merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.tar.gz merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.tar.bz2 merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.zip |
adding POST to give the backend the needed JSON
for generating the contract. I.e. adding POST /contract
Diffstat (limited to 'src/frontend/checkout.php')
-rw-r--r-- | src/frontend/checkout.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/frontend/checkout.php b/src/frontend/checkout.php index fc11b35a..b7b028fb 100644 --- a/src/frontend/checkout.php +++ b/src/frontend/checkout.php @@ -41,8 +41,6 @@ <?php -// ID generation -$transId = rand(1, 15); // getting the donation receiver's name $got_donation = $_POST['group0']; // create session @@ -54,13 +52,14 @@ $_SESSION['maydonate'] = true; ?> -<form name="tform" action="" method="POST"> +<form name="tform" action="cert.php" method="POST"> <div id="opt-form" align="left"><br> <input type="radio" name="group1" value="Lisa">Lisa<br> <input type="radio" name="group1" value="You Card" checked>You Card<br> <input type="radio" name="group1" value="Card Me">Card Me<br> <input id="t-button-id" type="radio" name="group1" value="Taler" disabled="true">Taler<br> -<input type="button" onclick="ok(this.form)" value="Ok"--> +<input type="submit" value="Ok"--> +<!--input type="button" onclick="ok(this.form)" value="Ok"--> </div> </form> @@ -81,9 +80,7 @@ function ok(form){ to the (XUL) extension) */ sendContract(cert.responseText); } - else alert("Certificate ready state: " - + cert.readyState + ", cert status: " - + cert.status); + else alert("No certificate gotten, status " + cert.status); } }; |