<?php isset($_POST['op']) && $_POST['op'] != "add"; if ($_POST['op'] != "add" ) { //havent seen form, so see it $display_block = "<h1>Add an Entry</h1> <form method = \"post\" action =\"$_SERVER[PHP_SELF]\">
<p><input type = \"submit\" name=\"submit\" value=\"Add Entry\"></p> </form>"; } else if ($_POST[op] == "add" ) //check required fields { if (($_POST[Venue_name] == "") || ($_POST[Venue_date] == "")) {header("Location:addentry.php"); exit; }
if(isset($_POST['op'])) { // Insert your codes here // Additionally $_POST[op] is an invalid usage, it must be $_POST['op'] } else { // If there is no post variable whose name is 'op' }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)