<?php if(isset($_SESSION["email"]) && !empty($_SESSION['email'])){ if (isset($_SESSION["booked"])) ?> <form method="POST"> <div class="row"> <div class="col-sm-6"> <?php $booked=$row["booked"]; if ($booked=='No'){ ?> <input type="hidden" name="property_id" value="<?php echo $rows['property_id']; ?>"> <input type="submit" class="btn btn-lg btn-primary" name="book_property" style="width: 100%" value="Book Property"> <?php } else { ?> <input type="submit" class="btn btn-lg btn-primary" style="width: 100%" value="Property Booked" disabled> <?php } ?>
$row
"booked"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)