I'm have a bit of trouble with the isset() code. The goal is to click a link (or a submit button) and have it travel to another page. The page is only viewable if the link has been clicked. However, my code doesn't seem to understand that I'm clicking the link....
From the main page:
<form action="view.php">
<input type="submit" value="submit" name="submit">
</form>
From the second page:
<?php
if(isset($_POST['submit'])) {
//database connection info is here
//table loop is here
} else {
echo "The reviews are currently unavailable.";
}
?>
I always receive the else.
Maybe there's another way to do this code?