diff options
| author | Mateja <mail@matejamaric.com> | 2020-10-04 01:00:02 +0200 | 
|---|---|---|
| committer | Mateja <mail@matejamaric.com> | 2020-10-04 01:00:02 +0200 | 
| commit | 9bcdc348dc9e93440e1cb5067548241259750cef (patch) | |
| tree | 38de9eb87530d32dadc4a5378ef7743d00896841 | |
| parent | a3094caeb564821870870d57efb4a4fc3fd659e7 (diff) | |
| download | old-php-yota-9bcdc348dc9e93440e1cb5067548241259750cef.tar.gz old-php-yota-9bcdc348dc9e93440e1cb5067548241259750cef.zip  | |
Working...
| -rw-r--r-- | admin.php | 13 | ||||
| -rw-r--r-- | handle-reservation.php | 2 | ||||
| -rw-r--r-- | reservation.php | 1 | 
3 files changed, 4 insertions, 12 deletions
@@ -61,17 +61,6 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {  			else  				echo "<td class=\"center\"><input type=\"checkbox\"></td>"; -      //echo "<td contenteditable=\"true\">" . $row['operatorCall'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['fromTime'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['toTime'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['frequencies'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['modes'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['specialCall'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['operatorName'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['operatorEmail'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['operatorPhone'] . "</td>"; -      //echo "<td contenteditable=\"true\">" . $row['qso'] . "</td>"; -        echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['operatorCall'] . "</div></td>";        echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['qso'] . "</div></td>";        echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['fromTime'] . "</div></td>"; @@ -98,7 +87,7 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {  	if (isset($_SESSION['admin']) && $_SESSION['admin'] == false)  		echo "<em>Bad credentials!</em>";  	# Login form -	echo '<form method="post">'; +	echo '<form action="login.php" method="post">';  	echo '<label for="email">Email:</label>';  	echo '<input type="email" id="email" name="email">';  	echo '<label for="password">Password:</label>'; diff --git a/handle-reservation.php b/handle-reservation.php index bed1949..076b02a 100644 --- a/handle-reservation.php +++ b/handle-reservation.php @@ -1,4 +1,6 @@  <?php +session_start(); +  if ($_SERVER["REQUEST_METHOD"] == "POST") {    // DB INFO    $user = "yota_requester"; diff --git a/reservation.php b/reservation.php index 05f6fa7..d557c1e 100644 --- a/reservation.php +++ b/reservation.php @@ -28,6 +28,7 @@ session_start();  <?php  if (isset($_SESSION["msg"])) {      echo "<p class=\"mid\"><strong>" . $_SESSION["msg"] . "</strong></p>"; +    unset($_SESSION["msg"]);  }  ?>  | 
