Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!empty($_POST['submit'])){
- if (isset($_POST['reportType'])){
- $reportType = mysqli_real_escape_string($connection, $_POST['reportType']);
- //Also tried $reportType = $_POST['reportType']
- }
- }
- ?>`
- <form method="post" action="" class="reportForm">
- <select name="reportType" class="form-control" id=reportType>
- <option value="Users">Users</option>
- <option value="Medicine">Medicines</option>
- <option value="Pharmacies">Pharmacies</option>
- <option value="Reviews">Reviews</option>
- </select>
- <div class="form-group col-md-2">
- <input type="submit" id="reports" value="Generate Report">
- </div>
- <?php
- if($reportType == "Users"){
- //This is where I'm getting the error but nothing's posting anyway
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement