X-Git-Url: http://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/63a18eab46a2252b58cca269bf802cc47894f881..4108c6129a33144d77835efc3c258787dde0a1a7:/petition.php diff --git a/petition.php b/petition.php index f594e58..657e97f 100644 --- a/petition.php +++ b/petition.php @@ -6,19 +6,33 @@ if (isset($_POST['petition'])){ $q = "select * from petitions where petition_id = '$id'"; $r = $petition->query($q); $d = mysqli_fetch_array($r); + //slack_general('OK POST (invite:'.$_COOKIE['invite'].')','md-petition'); }elseif($_COOKIE['pID'] != ''){ $id = $_COOKIE['pID']; $q = "select * from petitions where petition_id = '$id'"; $r = $petition->query($q); $d = mysqli_fetch_array($r); + //slack_general('OK COOKIE (invite:'.$_COOKIE['invite'].')','md-petition'); }else{ - slack_general('MAJOR ERROR: petition.php ('.$_COOKIE['invite'].')','md-petition'); + slack_general('MAJOR ERROR (invite:'.$_COOKIE['invite'].')','md-petition'); header('Location: reset.php'); die('Error #15'); } setcookie("pJPG", $d['petition_jpg']); ?> - + /i); + if (result == ""){ + document.getElementById("b2").style.display = "block"; + document.getElementById("b2warn").style.display = "none"; + document.getElementById("click_me2").style.display = "none"; + document.getElementById("form2").submit(); + //alert("Confirmed : " + result); + }else{ + document.getElementById("b2").style.display = "none"; + document.getElementById("b2warn").style.display = "block"; + document.getElementById("click_me2").style.display = "block"; + } } /i); + if (result == ""){ + document.getElementById("b1").style.display = "block"; + document.getElementById("b1warn").style.display = "none"; + document.getElementById("click_me1").style.display = "none"; + document.getElementById("form1").submit(); + //alert("Confirmed : " + result); + }else{ + document.getElementById("b1").style.display = "none"; + document.getElementById("b1warn").style.display = "block"; + document.getElementById("click_me1").style.display = "block"; + } } × -
+
@@ -92,14 +142,16 @@ if (isset($_POST['signed_name_as'])){ -
' name='signed_name_as'> + ' name='signed_name_as'>
@@ -107,10 +159,13 @@ if (isset($_POST['signed_name_as'])){
- - + +
'>
+