As a newby I am following a tutorial here and one thing does not appear to work. I have a form for data entry. I have selected Insert Record and used the Trigger "Button: Insert pressed" but when I try it, clicking on the button does nothing.
Form code
<form id="form1" name="form1" method="POST">
<p>
<label for="be_purpose4"><strong>Purpose</strong></label>
<br />
<textarea name="be_purpose" id="be_purpose4" cols="120" rows="2"></textarea>
</p>
<p>
<label for="be_recipient"><strong>Recipient</strong></label>
<br />
<textarea name="be_recipient" id="be_recipient" cols="120" rows="2"></textarea>
</p>
<p>
<label for="be_nature"><strong>Nature of Benefaction</strong></label>
<br />
<textarea name= "be_nature" id="be_nature" cols="120" rows="2"></textarea>
</p>
<p>
<label for="be_trustees"><strong>Trustees</strong></label>
<br />
<textarea name="be_trustees" id="be_trustees" cols="120" rows="2"></textarea>
</p>
<p>
<label for="be_location"><strong>Location of document</strong></label>
<textarea name="be_location" id="be_location" cols="120" rows="2"></textarea>
</p>
<p>
<label for="date_recorded"><strong>Date recorded</strong></label>
<br />
<input type="text" name="date_recorded" id="date_recorded" />
</p>
<p>
<label for="date_updated"><strong>Date record updated</strong></label>
<br />
<input type="text" name="date_updated" id="date_updated" />
</p>
<p>
<input type="submit" name="insert" id="insert" value="Save record" />
</p>
</form>
Code inserted by Server Behaviours for Insert Record
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$InsertQuery = new WA_MySQLi_Query($PrioryTerrier);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "benefactions";
$InsertQuery->bindColumn("be_purpose", "s", "".((isset($_POST["be_purpose"]))?$_POST["be_purpose"]:"") ."", "WA_DEFAULT");
$InsertQuery->saveInSession("");
$InsertQuery->execute();
$InsertGoTo = "list_benefactions_record.php";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);
}
?>