Record Insertion Form Wizard Help required

Hi there
I am having trouble getting my insertion form to save the
info to a database. What I want to do is to get customers to
subscribe to a monthly newsletter by inserting their email
addresses into a form which should then be saved to a MS Access
Database. I have made the connection and theres no problems there.
But when use the record insertion form wizard and try to test it on
my testing server (offline)...and when I click submit I get the
following message:
The page cannot be displayed
There is a problem with the page you are trying to reach and
it cannot be displayed.
Please try the following:
Click the Refresh button, or try again later.
Open the localhost home page, and then look for links to the
information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not use
'(unknown)'; file already in use.
/jb_root/Digest_Subscription.asp, line 113
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Xtra
V3.5)
Page:
POST 55 bytes to /jb_root/Digest_Subscription.asp
POST Data:
Email_Address=[email protected]&MM_insert=form1
Time:
Tuesday, 26 September 2006, 10:38:06 a.m.
More information:
Microsoft Support
I have defined a go to page after submitting the info...but
that doesnt come up and neither does it want to store the input
data into the database..Can anyone please help me out here.

Springbok_yfc wrote:
>
> Error Type:
> Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
> [Microsoft][ODBC Microsoft Access Driver] Could not use
'(unknown)'; file
> already in use.
This error is usually associated with a permissions error.
Check out this technote.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18802
Cheers jojo
Adobe Community Expert for Dreamweaver 8
http://www.webade.co.uk
http://www.ukcsstraining.co.uk/
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm

Similar Messages

  • Record Insertion Form Wizard, page not displaying

    I used the "Record Insertion Form Wizard" in Dreamweaver 8 to
    build the following code. Problem is that when I upload this to my
    server and load the page nothing is being displayed. Anybody have
    any thoughts on this?

    Hi yea,
    you need to upload the includes folder that is created when
    using the
    interakt extensions.
    "Herman2468" <[email protected]> wrote in
    message
    news:e7mmi0$ic3$[email protected]..
    > Dreamweaver's "Record insertion form wizard" creates
    this code in my
    > add_products.php page
    >
    > 1 <?php
    require_once('../Connections/connStore1.php'); ?>
    > 2 <?php
    >
    > 4 //Alternative for PHAkt's functions.inc.php
    > 5 require_once('../includes/tNG_functions.inc.php');
    >
    > 7 //load the tNG classes
    > 8 require_once('../tNG/KT_tNG.inc.php');
    >
    > Which causes this error message:
    >
    > Warning: main(../includes/tNG_functions.inc.php): failed
    to open stream:
    > No
    > such file or directory in
    /home/herm1/public_html/admin/add_product.php on
    > line
    > 5
    >
    > Fatal error: main(): Failed opening required
    > '../includes/tNG_functions.inc.php'
    > (include_path='.:/usr/lib/php:/usr/local/lib/php') in
    > /home/herm1/public_html/admin/add_product.php on line 5
    >
    >
    > Dreamweaver is telling add_products.php to access a
    folder that does not
    > exist.
    > I'm stuck.
    >
    >
    >

  • Dreamweaver Error when using Record Insertion Form Wizard

    This is the error I'm getting:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following JavaScript error(s) occured:
    At line 283 of file "C:Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Commands\ServerObject-FormCmnPHP.js":
    invalid array length
    The strange thing is, that I've added a form using the wizard before and had no problems. But I deleted the form and wanted to create a new one using the wizard again. And that's when I got the error. I tried this on another computer and got the same error.
    Please help, this is very aggrevating.
    *Also, I've done the same thing on multiple computers and get the same error.
    I've tried deleting the file cache in the configuration folder as instructed by an individual who was talking about JavaScript errors and it still doesn't work.
    Message was edited by: PJP2123

    I know its 4 years later but I just got the same error. after several hours of debugging i found the issue was in my database.
    I have fields named - length, width, height, weight.
    I fixed it by changing them to Lamplength, lampwi   etc
    hope that helps anyone else in the future.

  • Dreamweaver CS4 - Record Insertion Form js error

    Hi
    I'm dreamweaver cs4 and started using the Record Insertion form, I was mainly experimenting with it and just seeing what it could do.
    However when I get to the wizard i have to wait a few seconds for it to connect to the database and then I get an error message that says:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following Javascript error(s) occured:
    At line 283 of the file "Macintosh HD:Application:Adobe Dreamweaver
    CS4:Configuration:Commands:ServerObject-FormCmnPHP.js":
    invalid array length
    I was just wondering if this was a common problem, or I've messed something up either in Dreamweaver, or in the SQL database that I'm using.
    I've also noticed that its the same for Update and Delete Records Wizards aswell.
    Any help would be greatly appreciated
    Aaron Kennedy

    I see it's your first post. Welcome to the forum.
    A good place to start looking for answers is the Dreamweaver FAQ. You'll find the answer to your question under "Crashes, installation, JavaScript, and unexplained problems".

  • Dw cs5 BUG: record insertion Form

    TO RECREATE:
    When dreamweaver CS5 is connected to Coldfusion 8 and MySql server, And the mySql table field contains allow "NULL" (that is allows NULL)
    the "Record Insertion Form" generates incorrect code. The varchar(50) does not work -- it incorrectly generates cfqueryparam(..."cf_sql_clob")   Hopefully this will help some one else.
    mysql>
    CREATE TABLE `contacts`(
      `contacts_ID` INT UNSIGNED NOT NULL AUTO_INCREMENT
         ,`contacts_detail_ID` INT UNSIGNED NULL
      ,`firstname` VARCHAR(50) NOT NULL
      ,`lastname`  VARCHAR(50)  NOT NULL
      ,`emailaddr` VARCHAR(128) NOT NULL UNIQUE 
      ,`pwd` VARCHAR(40) NULL
      ,`contacts_status` TINYINT  UNSIGNED NOT NULL DEFAULT 1
        ,`modified_date` TIMESTAMP NOT NULL  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
         ,PRIMARY KEY(`contacts_ID`)
         ,KEY(`firstname`)
         ,KEY(`lastname`)
         ,KEY(`emailaddr`)
      ">
    WRONG CODE:
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
      <cfquery datasource="ndi2010">
    INSERT INTO contacts (firstname, lastname, emailaddr, pwd, contacts_status)
    VALUES (<cfif IsDefined("FORM.firstname") AND #FORM.firstname# NEQ "">
    <cfqueryparam value="#FORM.firstname#" cfsqltype="CF_SQL_CLOB" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="CF_SQL_CLOB" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.emailaddr") AND #FORM.emailaddr# NEQ "">
    <cfqueryparam value="#FORM.emailaddr#" cfsqltype="CF_SQL_CLOB" maxlength="128">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.pwd") AND #FORM.pwd# NEQ "">
    <cfqueryparam value="#FORM.pwd#" cfsqltype="CF_SQL_CLOB" maxlength="40">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.contacts_status") AND #FORM.contacts_status# NEQ "">
    <cfqueryparam value="#FORM.contacts_status#" cfsqltype="CF_SQL_TINYINT">
    <cfelse>
    NULL
    </cfif>
      </cfquery>
    CORRECTED / better CODE:
    <cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
      <cfquery datasource="ndi2010">
    INSERT INTO contacts (firstname, lastname, emailaddr, pwd, contacts_status)
    <cfqueryparam value="#FORM.firstname#" cfsqltype="CF_SQL_VARCHAR" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.lastname") AND #FORM.lastname# NEQ "">
    <cfqueryparam value="#FORM.lastname#" cfsqltype="CF_SQL_VARCHAR" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.emailaddr") AND #FORM.emailaddr# NEQ "">
    <cfqueryparam value="#FORM.emailaddr#" cfsqltype="CF_SQL_VARCHAR" maxlength="128">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.pwd") AND #FORM.pwd# NEQ "">
    <cfqueryparam value="#FORM.pwd#" cfsqltype="CF_SQL_VARCHAR" maxlength="40"
    null="#YesNoFormat(NOT Len(Trim(FORM.pwd)))#"  >
    <cfelse>
    <cfqueryparam value="" cfsqltype="CF_SQL_VARCHAR" maxlength="40"
    null="#YesNoFormat(1)#">
    </cfif>
    , <cfif IsDefined("FORM.contacts_status") AND #FORM.contacts_status# NEQ "">
    <cfqueryparam value="#FORM.contacts_status#" cfsqltype="CF_SQL_TINYINT">
    <cfelse>
    NULL
    </cfif>
      </cfquery>

    MX 2004 was always a bit "gummy" on this.  Instead of using the DW wizard, I downloaded a free version of Microsoft SQL Server Express Edition.  I use that for all table Inserts, Updates,etc.   This accesses the tables directly on the server.  Nothing needs to be synced, put, gotten or whatever.  Use DW for Form and UI creation and making prebuilt queries.
    Hope that helps
    Jerry H

  • Where is the Record Update Form Wizard in DWCC?

    Trying to follow online help but it doesn't relate to DWCC.   A tutorial I found for CS6 suggests that it's in Insert > Data Objects > Update Record > Record Update Form Wizard but in DWCC there is no "Data Objects" option in the Insert menu.
    By the way, I'm looking for the wizard not the straight Update behaviour which I'm aware is in the Server Behaviours panel.
    Thank you.
    NJ
    EDIT:  Just spoke to Adobe "support" by chat about this and they were absolutely useless. The directed me to the article that I've highlighted above as being for CS6, which isn't helpful because "Data Objects" isn't in the Insert menu in DWCC, and when I pointed that out they gave me this link to try:  http://www.adobe.com/devnet/
    Seriously?  Is this the best I can hope for from Adobe support?  It was clear that the operative was just doing Google searches for the answers as opposed to actually knowing the software that they represent.  Really disappointing support.

    Hi Jon,
    "Database functionality was removed from DWCC."  - I use database functionality a lot so this is a real let down.  Why has it been removed when it seems so integral to a lot of modern websites and web applications?
    I've got the Legacy Extension, or Depracated_ServersBehaviours panel extension, but that does not bring back the Record Update Form Wizard.
    Tutorials as far as CS6 reference the Record Update Form Wizard but I'm guessing that it has just been completely dropped in DWCC - not that anyone from Adobe know that one way or another.  The official "support" I received earlier was a complete joke (some guy doing Google searches whilst saying - "I'm just verifying your account").
    I'm quite handy with Google myself so maybe there's an opportunity for me to move into a career as an Adobe support technician.
    I'll have to find a third party extension then I guess.  Thanks for the advice.

  • CS3 Insertion Form Wizard double entries

    Running CS3 in Leopard with PHP & MySQL db. The Insertion Form Wizard works fine but creates 2 identical records in the db when inserted. Any thoughts?
    Regards to the forum.

    Nevermind; author stupidity-duplicate behaviors.

  • SQL syntax error when creating record insertion form

    Good day,
    I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am getting the following error: 
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1
    Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
    Thank you for your assistance and please advise any code you would like me to send.

    Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
       if (PHP_VERSION < 6) {
         $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
         case "text":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;   
         case "long":
         case "int":
           $theValue = ($theValue != "") ? intval($theValue) : "NULL";
           break;
         case "double":
           $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
           break;
         case "date":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "defined":
           $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
           break;
       return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
       $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
       $insertSQL = sprintf("INSERT INTO individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                            GetSQLValueString($_POST['Grade'], "text"),
                            GetSQLValueString($_POST['LastName'], "text"),
                            GetSQLValueString($_POST['FirstName'], "text"),
                            GetSQLValueString($_POST['MI'], "text"),
                            GetSQLValueString($_POST['Organization'], "text"),
                            GetSQLValueString($_POST['Office'], "text"),
                            GetSQLValueString($_POST['Department'], "text"),
                            GetSQLValueString($_POST['Phone'], "double"),
                            GetSQLValueString($_POST['EmailAddress'], "text"),
                            GetSQLValueString($_POST['JobTitle'], "text"),
                            GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                            GetSQLValueString($_POST['Citizenship'], "text"),
                            GetSQLValueString($_POST['Designation'], "text"),
                            GetSQLValueString($_POST['IATrainingComplete'], "text"),
                            GetSQLValueString($_POST['IADate'], "text"));
      mysql_select_db($database_group4, $group4);
       $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
      $insertGoTo = "index.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
         $insertGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_group4, $group4);
    $query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
    $rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
    $row_rsIndividual = mysql_fetch_assoc($rsIndividual);
    $totalRows_rsIndividual = mysql_num_rows($rsIndividual);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Us</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
      font-size: 36px;
      text-decoration: underline;
    .quote {
      font-size: 18px;
      font-style: italic;
    .tablethisone {
      margin: 5px;
      padding: 25px;
      border: medium none #000;
      text-align: center;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
       <li><a href="index.php">Home</a>  </li>
       <li><a href="search.php">Search</a></li>
       <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>PRIVACY ACT STATEMENT</p>
    <p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
       To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
       access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
       and/or paper form.</p>
    <p> </p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
       <table align="center">
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Grade:</td>
           <td><input type="text" name="Grade" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">LastName:</td>
           <td><input type="text" name="LastName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">FirstName:</td>
           <td><input type="text" name="FirstName" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">M.I.:</td>
           <td><input type="text" name="MI" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Organization:</td>
           <td><input type="text" name="Organization" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Office:</td>
           <td><input type="text" name="Office" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Department:</td>
           <td><input type="text" name="Department" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Phone:</td>
           <td><input type="text" name="Phone" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">EmailAddress:</td>
           <td><input type="text" name="EmailAddress" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">JobTitle:</td>
           <td><input type="text" name="JobTitle" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
           <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Citizenship:</td>
           <td><input type="text" name="Citizenship" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">Designation:</td>
           <td><input type="text" name="Designation" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IATrainingComplete:</td>
           <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right">IADate:</td>
           <td><input type="text" name="IADate" value="" size="32" /></td>
         </tr>
         <tr valign="baseline">
           <td nowrap="nowrap" align="right"> </td>
           <td><input type="submit" value="Insert record" /></td>
         </tr>
       </table>
       <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
    prevent further processing of this request.</p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsIndividual);
    ?>

  • Insert Form Wizard

    When I create a form using the Insert Record Transaction Wizard, It validates the data using javascript and php. But, if I create my own form and just use the insert record transaction server behavior it only validates the data using javascript. How can I get the data to validate using php?
    I would prefer to design my own forms using css and do not like the extra markup that ADDT uses by building their forms in tables.

    Hi Jon,
    Thank you very much for the response. Either I have a different version of DW or I'm looking in the wrong area to follow your directions. Under Insert I do not have "Data Objects" . I have Image Objects, Table Objects, Layout Objects and Template Objects. Can I add this feature of Data Objects or is it located somewhere else in my version of DW?
    Thanks again for any help.
    Mike

  • Record insert speed! help me

    I use SQLServer 2000.In order to increase insert speed,I use batch method.But the result is too bad.
    Only 2000 records are inserted at one min.I think I use batch in a wrong way,anyone could give me a sample about it?The refrence is welcome.Thank you.
    By the way,how many records could be inserted in one min.
    Thanks for reading.

    Insert speed is dictated by:
    - Network speed
    - If the database must reparse the SQL for each insert statement
    - If the inserting is logged or not
    - If there are triggers and constraints in the tables affected by the insert
    - If there are a lot of indexes in the tables affected by the insert.
    If you really need to insert a lot of lines in a batch, use bcp or DTS.
    The executeBatch methods (JDBC 3.0) alleviate the influence of the two first factors (network speed and reparsing SQL statements). The other factors can not be reduced using pure JDBC.

  • DW CS3 Insert Record/Update Record: Record Form Wizard Error

    I have just bought Dreamweaver CS3 and I am running into some
    problems. I also have Dreamweaver MX 2004. When I use the Insert
    Record: Record Insertion Form Wizard on my Dreamweaver MX 2004 I
    have no problems using the Insert Record function. However, when I
    use the Dreaweaver CS3, I am running into errors. The error I am
    getting is the following..."Apache HTTP Server has encountered a
    problem and needs to close. We are sorry for the inconvenience."
    As well, when I use the update form wizard, when you place
    all your settings and place a redirection after updating to a page
    it does not do it, it stays on the same page and gives me the
    following error..."Warning: Cannot modify header information -
    headers already sent in C:\wamp\www\edit.php on line 50".
    This happens on all internet browsers when I want to insert a
    new record. It takes a long time to load the page and then it
    finally gives me an error which I stated above. I never had a
    problem before. I thought maybe I installed the application wrong,
    so I unistalled and reinstalled the DW CS3. I still get the same
    issue. I became so frustrated that I formatted my hard drive
    thinking make I have a adware or spyware, so to be cautious I
    formatted my computer and installed everything with a fresh install
    and still I get this error. Now my testing server that I use is
    called WAMP. I never had problems with it before using DW MX 2004
    or when I used the trial of DW 8. So now I am out of options. Is
    there a glitch in the new CS3 Web Premium that includes DW CS3
    upgrade software and if there is, is there a download. Can anyone
    help me, please.

    Please bare with me David. I know something is wrong because
    I have made two folders, one that is done in MX2004 and the other
    done in CS3. CS3 is generating errors. For example. In the insert
    page in MX2004 I do not need to make a recordset, however, for the
    CS3 insert page I noticed when I use the insert record form wizard
    it does not work unless I make a recordset where in MX2004 I did
    not need to do this. I've created a add.php and a edit.php of
    MX2004 and CS3. I will place it in the attach code so you can see
    side by side what it is generating. I can see that there are a few
    things that CS3 does change and some how it is making my internet
    browsers show an error saying......"Warning: Cannot modify header
    information - headers already sent in C:\wamp\www\edit.php on line
    50".
    What do I do?
    I noticed that in the following code difference in...
    MX2004 = <?php echo $row_rsTest['test']; ?>
    CS3 = <?php echo htmlentities($row_rsTest['test'],
    ENT_COMPAT, 'utf-8'); ?>
    There is a big difference.
    My database is the following...
    -- phpMyAdmin SQL Dump
    -- version 2.10.1
    http://www.phpmyadmin.net
    -- Host: localhost
    -- Generation Time: Jun 24, 2007 at 04:29 PM
    -- Server version: 5.0.41
    -- PHP Version: 5.2.3
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    -- Database: `mysample`
    CREATE DATABASE `mysample` DEFAULT CHARACTER SET latin1
    COLLATE latin1_swedish_ci;
    USE `mysample`;
    -- Table structure for table `test`
    CREATE TABLE `test` (
    `testID` int(11) NOT NULL auto_increment,
    `test` longtext NOT NULL,
    PRIMARY KEY (`testID`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
    -- Dumping data for table `test`
    INSERT INTO `test` (`testID`, `test`) VALUES
    (3, 'Sample Test');
    =======================================================================
    I use the program called
    WAMP.
    =======================================================================
    PHP PAGES

  • I WANT THE RESULT PAGE OF MY INSERT FORM TO BE AN UPDATE FORM OF THE JUST INSERTED DATA

    I WANT THE RESULT PAGE OF MY INSERT FORM TO BE AN UPDATE FORM OF THE JUST INSERTED DATA USING ADDT. PLS HELP WITH EXMPLE . THANKS

    let me xplain
    i am trying to create a 3  page form. i used the insert form wizard to create the first form and ask the form to go to the next page which i made an update form to continue the next set of fields. i tried what u said...but the next form did not add records to the database as i expected.below is my code for the two pages. pls tell me the best approach..thanks
    page 1
    <?php require_once('Connections/crusader.php'); ?>
    <?php
    //MX Widgets3 include
    require_once('includes/wdg/WDG.php');
    // Load the common classes
    require_once('includes/common/KT_common.php');
    // Load the tNG classes
    require_once('includes/tng/tNG.inc.php');
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("");
    // Make unified connection variable
    $conn_crusader = new KT_connection($crusader, $database_crusader);
    // Start trigger
    $formValidation = new tNG_FormValidation();
    $tNGs->prepareValidation($formValidation);
    // End trigger
    // Make an insert transaction instance
    $ins_capital = new tNG_insert($conn_crusader);
    $tNGs->addTransaction($ins_capital);
    // Register triggers
    $ins_capital->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    $ins_capital->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
    $ins_capital->registerTrigger("END", "Trigger_Default_Redirect", 99, "top.php");
    // Add columns
    $ins_capital->setTable("capital");
    $ins_capital->addColumn("cap_firstname", "STRING_TYPE", "POST", "cap_firstname");
    $ins_capital->addColumn("cap_username", "STRING_TYPE", "POST", "cap_username");
    $ins_capital->addColumn("cap_lastname", "STRING_TYPE", "POST", "cap_lastname");
    $ins_capital->addColumn("cap_dateofbirth", "DATE_TYPE", "POST", "cap_dateofbirth", "{NOW}");
    $ins_capital->addColumn("cap_sex", "STRING_TYPE", "POST", "cap_sex");
    $ins_capital->setPrimaryKey("cap_id", "NUMERIC_TYPE");
    // Execute all the registered transactions
    $tNGs->executeTransactions();
    // Get the transaction recordset
    $rscapital = $tNGs->getRecordset("capital");
    $row_rscapital = mysql_fetch_assoc($rscapital);
    $totalRows_rscapital = mysql_num_rows($rscapital);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <?php echo $tNGs->displayValidationRules();?>
    <script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
    <script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
    <script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
    <script type="text/javascript" src="includes/wdg/classes/Calendar.js"></script>
    <script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
    <script type="text/javascript" src="includes/wdg/calendar/calendar_stripped.js"></script>
    <script type="text/javascript" src="includes/wdg/calendar/calendar-setup_stripped.js"></script>
    <script src="includes/resources/calendar.js"></script>
    </head>
    <body>
    <p> 
      <?php
        echo $tNGs->getErrorMsg();
    ?>
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
      <table cellpadding="2" cellspacing="0" class="KT_tngtable">
        <tr>
          <td class="KT_th"><label for="cap_firstname">Cap_firstname:</label></td>
          <td><input type="text" name="cap_firstname" id="cap_firstname" value="<?php echo KT_escapeAttribute($row_rscapital['cap_firstname']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("cap_firstname");?> <?php echo $tNGs->displayFieldError("capital", "cap_firstname"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_lastname">Cap_lastname:</label></td>
          <td><input type="text" name="cap_lastname" id="cap_lastname" value="<?php echo KT_escapeAttribute($row_rscapital['cap_lastname']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("cap_lastname");?> <?php echo $tNGs->displayFieldError("capital", "cap_lastname"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_dateofbirth">Cap_dateofbirth:</label></td>
          <td><input name="cap_dateofbirth" id="cap_dateofbirth" value="<?php echo KT_formatDate($row_rscapital['cap_dateofbirth']); ?>" size="32" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="no" />
            <?php echo $tNGs->displayFieldHint("cap_dateofbirth");?> <?php echo $tNGs->displayFieldError("capital", "cap_dateofbirth"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_sex">Cap:</label></td>
          <td><input type="text" name="cap_sex" id="cap_sex" value="<?php echo KT_escapeAttribute($row_rscapital['cap_sex']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("cap_sex");?> <?php echo $tNGs->displayFieldError("capital", "cap_sex"); ?></td>
        </tr>
        <tr class="KT_buttons">
          <td colspan="2"><input type="submit" name="KT_Insert1" id="KT_Insert1" value="Insert record" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </p>
    </body>
    </html>
    Page2
    <?php require_once('Connections/crusader.php'); ?>
    <?php
    // Load the common classes
    require_once('includes/common/KT_common.php');
    // Load the tNG classes
    require_once('includes/tng/tNG.inc.php');
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("");
    // Make unified connection variable
    $conn_crusader = new KT_connection($crusader, $database_crusader);
    // Start trigger
    $formValidation = new tNG_FormValidation();
    $tNGs->prepareValidation($formValidation);
    // End trigger
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_crusader, $crusader);
    $query_rdd = "SELECT * FROM capital ORDER BY cap_id DESC LIMIT 1";
    $rdd = mysql_query($query_rdd, $crusader) or die(mysql_error());
    $row_rdd = mysql_fetch_assoc($rdd);
    $totalRows_rdd = mysql_num_rows($rdd);
    // Make an update transaction instance
    $upd_capital = new tNG_update($conn_crusader);
    $tNGs->addTransaction($upd_capital);
    // Register triggers
    $upd_capital->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1");
    $upd_capital->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
    // Add columns
    $upd_capital->setTable("capital");
    $upd_capital->addColumn("cap_firstname", "STRING_TYPE", "POST", "cap_firstname");
    $upd_capital->addColumn("cap_dateofbirth", "DATE_TYPE", "POST", "cap_dateofbirth");
    $upd_capital->addColumn("cap_mobilephone", "STRING_TYPE", "POST", "cap_mobilephone");
    $upd_capital->addColumn("cap_occupation", "STRING_TYPE", "POST", "cap_occupation");
    $upd_capital->addColumn("cap_sumassured", "STRING_TYPE", "POST", "cap_sumassured");
    $upd_capital->setPrimaryKey("cap_id", "NUMERIC_TYPE", "GET", "cap_id");
    // Execute all the registered transactions
    $tNGs->executeTransactions();
    // Get the transaction recordset
    $rscapital = $tNGs->getRecordset("capital");
    $row_rscapital = mysql_fetch_assoc($rscapital);
    $totalRows_rscapital = mysql_num_rows($rscapital);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <?php echo $tNGs->displayValidationRules();?>
    </head>
    <body>
    <p> 
    <p> 
      <?php
        echo $tNGs->getErrorMsg();
    ?>
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
      <table cellpadding="2" cellspacing="0" class="KT_tngtable">
        <tr>
          <td class="KT_th"><label for="cap_firstname">Cap_firstname:</label></td>
          <td><input type="text" name="cap_firstname" id="cap_firstname" value="<?php echo KT_escapeAttribute($row_rdd['cap_firstname']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("cap_firstname");?> <?php echo $tNGs->displayFieldError("capital", "cap_firstname"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_dateofbirth">Cap_dateofbirth:</label></td>
          <td><input type="text" name="cap_dateofbirth" id="cap_dateofbirth" value="<?php echo KT_formatDate($row_rdd['cap_dateofbirth']); ?>" size="32" />
          <?php echo $tNGs->displayFieldHint("cap_dateofbirth");?> <?php echo $tNGs->displayFieldError("capital", "cap_dateofbirth"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_mobilephone">Cap_mobilephone:</label></td>
          <td><input type="text" name="cap_mobilephone" id="cap_mobilephone" value="<?php echo KT_escapeAttribute($row_rdd['cap_mobilephone']); ?>" size="32" />
          <?php echo $tNGs->displayFieldHint("cap_mobilephone");?> <?php echo $tNGs->displayFieldError("capital", "cap_mobilephone"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_occupation">Cap_occupation:</label></td>
          <td><input type="text" name="cap_occupation" id="cap_occupation" value="<?php echo KT_escapeAttribute($row_rdd['cap_occupation']); ?>" size="32" />
          <?php echo $tNGs->displayFieldHint("cap_occupation");?> <?php echo $tNGs->displayFieldError("capital", "cap_occupation"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="cap_sumassured">Cap_sumassured:</label></td>
          <td><input type="text" name="cap_sumassured" id="cap_sumassured" value="<?php echo KT_escapeAttribute($row_rdd['cap_sumassured']); ?>" size="32" />
          <?php echo $tNGs->displayFieldHint("cap_sumassured");?> <?php echo $tNGs->displayFieldError("capital", "cap_sumassured"); ?></td>
        </tr>
        <tr class="KT_buttons">
          <td colspan="2"><input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </p>
    </p>
    </body>
    </html>
    <?php
    mysql_free_result($rdd);
    ?>

  • Update record form wizard

    I am having problems with inserting update record forms and
    Custom From from the wizards into php files i am using Dreamweaver
    cs3 and Developer Toolbox.
    An Insert form works OK.
    The Update Form inserts into the page and can be accessed
    from the server, bit on attempting to update database I get the
    following message:
    quote:
    Developer Details:
    tNG_update.prepareSQL:
    No Primary Key Column was set. (UPD_NO_PK_SET)
    quote:
    tNG Execution Trace - VIEW
    * tNG_update.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_update.doTransaction
    + BEFORE.Trigger_Default_saveData
    # tNG_update.saveData
    + BEFORE.Trigger_Default_FormValidation
    + tNG_update.prepareSQL*
    o tNG_update.getRecordset
    o tNG_update.getFakeRsArr
    o tNG_update.getLocalRecordset
    o tNG_update.getFakeRecordset
    /Q]
    When using the Custom form wizard (inset and update) and
    {else} statement is inserted into the code and only the 'insert'
    button appears when I require 'insert', 'update' and 'delete'.
    Has anyone else experienced this - is there something I am
    not doing?

    Hi Glenn, I kept having the same problem this morning. What I
    finally figured out is that I wasn't using the session variables
    properly. For example. My user_ID field maps to the session
    variable name kt_login_id
    my email field maps to kt_login_user (I use my email as user
    name) and password is kt_password. I finally printed out the
    Session information from login settings in the control panel so I
    was sure to fill out the data in the update wizard correctly.
    Open up the Update Transaction panel and under the Fields
    Tab, you can see how your table fields are mapped to the session
    fields. Hope it helps.l

  • Update record form wizard problems

    I have an update form right after my log in page, but I guess my id is not getting carried to it. So everytime a user tries to update his record it says "No Primary Key Column was set"
    I used the update form wizard to create the update form and the log in form wizard for logging in. I checked the URL parameter and selected the right field in Primary Key Column in the update form wizard. You can actually update the record if you select "entered value" in Primary Key Equals and put a number against it, but not otherwise.
    Am i missing something. Im a complete novice so any advice is appreciated.

    I see this problem posted in lots of places - hopefully this will help someone...
    I had put the form on the page myself and filled in the filename in the "action" setting for the form.
    If the wizard creates the form, it uses...
    for the action value which maintains the get parameters that you passed from the other page. The "setPrimaryKey" function then has both that GET value (so it doesn't lose track of which record it's working on) and the POST information coming in from the form.
    I couldn't understand how my page had the primary key information the first time in but not when I submitted the form... this was the reason. It never affected the insert part of things because that doesn't rely on an existing primary key.

  • How can i display recent update/delete/insert records in form

    Hai !!!!
    i am new for forms,.......any body tell me, how can i display recent no of records updated or no of records deleted or no of records are inserted in a form. these records count are display in display items....give me detail explination......
    Subbu.....

    the easiest way is copy and paste the oracle-forms example from the OU.
    You need form-level-trigger ON-ERROR + ON-MESSAGE, POST-INSERT, POST-UPDATE, POST-DELETE, three global variables and a procedure:
    ON-ERROR
    handle_message( error_code, 'ERROR: ' || ERROR_TYPE || '-' || TO_CHAR(ERROR_CODE) ||': '|| ERROR_TEXT );
    ON-MESSAGE
    handle_message( message_code, MESSAGE_TYPE || '-' || TO_CHAR(MESSAGE_CODE) || ': ' || MESSAGE_TEXT );
    PROCEDURE handle_message( message_number IN NUMBER, message_line IN VARCHAR2 ) IS
    BEGIN
        IF message_number IN ( 40400, 40406, 40407 )
        THEN
          DEFAULT_VALUE( '0', 'GLOBAL.insert' );
          DEFAULT_VALUE( '0', 'GLOBAL.update' );
          DEFAULT_VALUE( '0', 'GLOBAL.delete' );
          MESSAGE('Save Ok: ' ||
            :GLOBAL.insert || ' records inserted, ' ||
           :GLOBAL.update || ' records updated, ' ||
           :GLOBAL.delete || ' records deleted !!!' );
          ERASE('GLOBAL.insert'); 
          ERASE('GLOBAL.update');
          ERASE('GLOBAL.delete');
        ELSE
             MESSAGE(message_line );
              END IF;
    END;
    POST-INSERT
    DEFAULT_VALUE('0', 'GLOBAL.insert');
    :GLOBAL.insert := TO_CHAR( TO_NUMBER( :GLOBAL.insert ) + 1 );
    POST-UPDATE
    DEFAULT_VALUE('0', 'GLOBAL.update');
    :GLOBAL.update := TO_CHAR( TO_NUMBER( :GLOBAL.update ) + 1 );
    POST-DELETE
    DEFAULT_VALUE('0', 'GLOBAL.delete');
    :GLOBAL.delete := TO_CHAR( TO_NUMBER( :GLOBAL.delete ) + 1 );try it
    Gerd

Maybe you are looking for