close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Following a tutorial here and one thing does not appear t work. I have a form into which data is entered. I have selected Insert Record and used the Trigger "Button: Insert pressed" but when I try it, clicking on the button does nothing. As a newby i

Thread began 3/07/2015 5:14 pm by Ian | Last modified 3/26/2015 11:22 pm by Ian | 351 views | 2 replies

Ian

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);
}
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...