CS4 Insert Record behavior when form spans pages

Hello!!
I have a form that spans pages, carrying the values via the session from page to page.
The insert record behavior only picks up the values from the page in which I am inserting the behaviour (which I understand)
Can I use the behavior "wizards" to create an insert that will use my session variables or do I have to do it through a script?
I am relatively new to web coding (php) so any help would be appreciated.
Thanks to all!! Have a great day...
Rich

I think I discovered the answer, but I would appreciate if someone can confirm if it's the right way or wrong way.
I made hidden input fields, and made the default value the contents of the session variable for each field I brought over from previous pages.
Seems to work, but is this a good way of doing it or a n00b way?
Thanks,
Rich

Similar Messages

  • Insert Record Behavior - Not passing variables

    I have an ASP form which collects information and posts the data to the database on submission and redirects the user to a thank you page.
    The user is provided a support request and I would like to provide the user with an auto-generated number created when the database gets created.  However, the Action on the submit form is <%=MM_editAction%> since I'm using the insert record behavior and now I can't seem to pass the form variable over to be used in my results recordset.
    Should I use a session variable instead or is there a way to make the insert record bahavior work and pass in the form variable?

    So it appears that I'm not the only person with this problem.  One of the solutions I found was to use a Server.Transfer     Server.Transfer("thank_you.asp")
    instead of a Redirect.
    This works however, now my form validation is broken.

  • Insert record behavior and multiple dynamic lists

    I have a complex form that contains an insert record
    behavior. Some of the fields are dynamic lists. My database has a
    table to hold the static fields from the form and a number of
    tables to hold the results from each dynamic list. I have the first
    form and another form for review purposes. On the review form I am
    getting an "Invalid argument supplied for foreach()" for each table
    I try to insert the dynamic list results into. My investigation
    leads me to believe that the arrays from the first form are being
    subsumed by the actual insert action and that when my review form
    is called, the arrays ($_POST) are no longer there. How do I ensure
    that the arrays being set in part 1 of the Insert record behavior
    will still be around for the review form? Any time I try to insert
    code into the actual insert code, Dreamweaver duplicates the
    behavior and tells me it can't decide which one to use.

    So it appears that I'm not the only person with this problem.  One of the solutions I found was to use a Server.Transfer     Server.Transfer("thank_you.asp")
    instead of a Redirect.
    This works however, now my form validation is broken.

  • Insert record AND post form

    Hi,
    I'm sure this is a common problem, I could not find anything
    relating to it in search here so...
    I have a form, which I insert data into database, fine.
    I then want to post the same form to paypal payment page.
    I've got paypal set-up fine with hidden fields in the form
    etc. However, how can I make the insert into database and then post
    the form to paypal ? should I use onClick event to trigger insert
    and action to post to paypal ?
    using asp vb
    Any advise appreciated.

    It'd be a 2 page process. On page 1, you submit the form and
    insert record
    into database. Then redirect to page 2. On page 2, you'd
    submit the form on
    load and post it to paypal.
    Jules
    http://www.charon.co.uk/charoncart
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004

  • Inserting records from Infopath forms library to a SQL table

    Hi,
    I have a requirement where i need to populate records from a Infopath forms library to a SQL table in a database. We have written a console app to achive the same. However we are encountering performance issues when inserting records in the database. The
    way we retreive information from Infopath forms library is through a CAML query and then insert record by record in database. Is their a better and faster way to acheive this?
    Can someone pls help? 
    thanks,
    Anand
    Thanks and Regards, Anand R. Deshpande

    Hello Anand,
    Could you share you console application code? Also tell us when you face performance issue. I mean is there any problem in accessing infopath form or you are facing problem with only console application.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Insert records from user form to multiple tables in same database

    Hi Experts, I need your help. I have a form that has multiple text fields that I need to insert the records to their each respective table. For example: The first name field needs to go the the name table, address goes to a seperate table, phone goes to a seperate table and so on.
    Is this possible to do?
    Thanks Much
    Sham

    The same for ASP, JSP or PHP.  Just the code syntax is different for each language.  Are you using MySQL, Access or ?
    In any case, create the three recordsets on the database and use insert queries.  If you don't know what one is, google insert query and you will see the syntax. 
    Here is a good example out on the web
    http://www.stardeveloper.com/articles/display.html?article=2000032601&page=1
    In your case you would get the values for the inserts from the form data and only need to open the database connection once.
    Good luck.
    Walt
    B & B Photography

  • Allowing a zero as the first digit in an insert record form field

    I have a form that has an insert record behavior applied to
    it. I would like to be able to put a number into one of the form
    fields that begins with the letter zero (i.e. 010507). The trouble
    is that when I insert any number beginning with a zero, the first
    zero in the number gets dropped when it is entered into the
    database. This occured even when I tried changing the field type
    from number to text in Access.

    Oh, I failed to change the field type to "text" in the insert
    record dialogue box as well.

  • Add date stamp to insert record

    This should be easy. I would think it's a standard procedure but 5 hours of searching the net, the forums, and experimenting has left me with a loss.
    I've created a simple form with 3 fields, firstName, lastName, eMail
    I've created a SQL database and table with the fields id, date, firstName, LastName, eMail
    The id is an int and the primary key, date is set to datetime the rest are varchar
    I've created a successful Insert Record behavior and now all I want to do is to update the date field with the datetime value when the record is added.
    Things I've tried include a java script to create a date variable, SQL NOW in various forms, a ton of other complex solutions. I've added hidden fields to the form, which got me the closest when I manually entered a value in the same format that I see in the SQL table when I add a row to the table from the PHP admin page.
    Please tell me this is not going to require 30 lines of code and another half day of fussing around.

    Hi Rick,
    Please tell me this is not going to require 30 lines of code and another half day of fussing around.
    with ADDT it´s pretty easy: just make sure that your datetime column gets ADDT´s "datetime" placeholder {NOW_DT} inserted as "entered value":
    Open the Insert Record Transaction dialog box, select the date column and define these settings:
    - Submit as: Date
    - Get value from: Entered Value
    - Value: {NOW_DT}
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Problems with Update Record behavior

    I am sorry to ask this question again since I have not resolved the issue yet.
    When I am using the Dreamweaver Update Record behavior,  I am not able to get the form validation to work.  I implemented the form validation by inserting  onsubmit="return someFormValidation(this);" into the update form created by Dreamweaver.
    When I hit the submit button the JavaScript validation function is not even invoked.
    However when I use the same method for form validation with Insert Record behavior I have no problems.  Is this difference I am observing between the Insert and Update behaviors the way Dreamweaver supposed to work?  If yes how can I do my form validation during an Update Record?
    Note that the pages involved are all php pages, therefore we are talking about server side validation here.
    If anyone can help I will be grateful as I am really stuck...

    I am closing this even though I got no answers as the weird behaviour has disappeared....

  • Insert record and email

    Hello
    How do I insert a record with the image filename into a database, then send the data just entered as an email?
    I was able to do this before but now this new CS3 seems so complicated!
    I am unable to just use an insert record behavior then add form fields and change the insert or update recored behavior like before.
    Please can I be shown some actual working tutorials on this?
    This search function on this forum does not work as I tried to search for this exact statement "insert record and email" and no records appear.
    Cheers

    Ok, here is the entire page:
    <br />
    <br /><?php require_once('Connections/cnreviva.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_cnreviva = new KT_connection($cnreviva, $database_cnreviva);<br /><br />$editFormAction = $_SERVER['PHP_SELF'];<br />if (isset($_SERVER['QUERY_STRING'])) {<br />  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);<br />}<br /><br />// *** Mail form as Text format ***<br />if (isset($_POST["FX_sendForm"]) && $_POST["FX_sendForm"] == "frmupload") {<br />  $format = strtolower("Text");<br />  if ($format != "html") $format = "plain";<br />  $filefield = "uploadfile";<br />  $top = "\r\n";<br />  $body = "\r\n";<br />  $excludeArray = array("button","button_x","button_y","uploadfile","FX_sendForm","MM_insert","MM_update"); <br />  $i = 0;<br />  while ($i<sizeof($_POST)) {<br />    if (!in_array(key($_POST),$excludeArray)) {<br />      if (is_array(pos($_POST))) {<br />        $postVar = implode(", ", pos($_POST));<br />      } else {<br />        $postVar = pos($_POST);<br />      } <br />      $body .= strtoupper(key($_POST)) . ": " . stripslashes($postVar) . "\r\n";<br />    }<br />    $i++;<br />    Next($_POST);<br />  }  <br />  $bottom = "\r\n";<br />  $from = $_POST["email"];<br />  // set parameters<br />  $recipient = "[email protected]";<br />  $subject = "Test";<br />  $message = $top . $body . $bottom;<br />  // set extra parameters<br />  $headers = "From:" . $from . "\r\n";<br />  $headers .= "Cc:\r\n";<br />  $headers .= "Bcc:\r\n";<br />  require_once("FXInc/FX_mailForm_php.inc");<br />  // send all<br />  mail($recipient, $subject, $message, $headers);<br />  $body = urlencode(str_replace("\r\n", "<br>", $body));<br />  $redirect = "thankyou.php";<br />  if ($redirect) header("Location: " . $redirect);<br />}<br /><br />// Make an insert transaction instance<br />$ins_tblfeedback = new tNG_insert($conn_cnreviva);<br />$tNGs->addTransaction($ins_tblfeedback);<br />// Register triggers<br />$ins_tblfeedback->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_tblfeedback->registerTrigger("END", "Trigger_Default_Redirect", 99, "thankyou.php");<br />// Add columns<br />$ins_tblfeedback->setTable("tblfeedback");<br />$ins_tblfeedback->addColumn("name", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("email", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("city", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("country", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("shoe_size", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("feedback", "STRING_TYPE", "POST", "");<br />$ins_tblfeedback->addColumn("activate", "STRING_TYPE", "POST", "", "N");<br />$ins_tblfeedback->addColumn("photo", "FILE_TYPE", "FILES", "uploadfile", "");<br />$ins_tblfeedback->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rstblfeedback = $tNGs->getRecordset("tblfeedback");<br />$row_rstblfeedback = mysql_fetch_assoc($rstblfeedback);<br />$totalRows_rstblfeedback = mysql_num_rows($rstblfeedback);<br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br />
    <br />
    <br />
    <br />
    <form action="%3C?php%20echo%20$editFormAction;%20?%3E" method="post" name="frmupload" id="frmupload">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table width="300" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td>Name
    <br />
    <br />
    <input type="text" name="name" id="name" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Email
    <br />
    <br />
    <input type="text" name="email" id="email" length="20" value="" /></td>
    </tr>
    <tr>
    <td>City
    <br />
    <br />
    <input type="text" name="city" id="city" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Country
    <br />
    <br />
    <input type="text" name="country" id="country" length="20" value="" /></td>
    </tr>
    <tr>
    <td>Image
    <br />
    <br />
    <input name="uploadfile" type="file" id="uploadfile" /></td>
    </tr>
    <tr>
    <td>&#160;</td>
    </tr>
    <tr>
    <td>
    <?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <input type="submit" name="button" id="button" value="Submit" />
    </td>
    </tr>
    </table>
    <br />
    <input type="hidden" name="FX_sendForm" value="frmupload" />
    <br /></form>
    <br />
    <p>&#160;</p>
    <br />
    <br />

  • Insert Record and Redirect Data

    I have a website where we are adding articles to categories.
    I need to be able to have a user add an article and then have the
    option to add that same article into another category.
    I'm using the INSERT RECORD behavior now but I'm looking for
    an extension that will INSERT RECORD plus redirect the record/data
    to another page so the user can add it to another category.

    I found this in the upload scripts read me file:
    The clsUpload object contains public functions and methods
    which enable you to upload and save files to a web server using
    pure VBScript.
    Read only
    Data Type: Dictionary Collection
    Syntax: object.Form
    Returns a Forms collection consisting of all the Form objects
    parsed from the HTTP header.
    This collection contains all the HTML form elements which are
    not "Files"
    This collection should be used instead of the typical
    "request.form" method to access data from the other form elements
    (if you decide to combine "file" upload elements with other form
    element types, like checkboxes, text boxes, drop-down lists,
    textareas). Why? Because the form data is posted using
    "multipart/form-data" encoding (and needs to be retrieved like
    binary data instead of text data) and therefore the typical
    "request.form" method isn't effective.
    I changed request.form to clsUpload.form but it still did not
    work.

  • Problem inserting date in oracle forms

    I have a data block called CUSTOMER and a TEXT ITEM called
    DOB which is used to enter the Date of birth (date).
    I have a SAVE button, on its trigger WHEN-BUTTON-PRESSED,
    I have the following code
    insert into test values
    (to_date(:customer.dob,'dd-mon-yyyy'));
    commit;
    When i run the form it gives the error
    FRM-40508: Oracle error: unable to INSERT record
    But when i run the same trigger with sysdate (as shown below)
    it runs perfectly, i mean the row is inserted into the database.
    insert into test values
    (to_date(sysdate,'dd-mon-yyyy'));
    commit;
    If someone can offer some assistance regarding this problem,
    I will appreciate that.
    Dalbir

    Whenever you get an "Oracle Error" it means the form is happy but the database is complaining about something. You can select help > display error from the menu to see the sql it is trying to run and what the problem is.
    Incidentally, why are you going to the trouble of trying to write code to do something which a forms block does automatically ?

  • New  browser window after insert record

    I need some help in modifying the insert record so the the
    goto page opens in a new browser window. I'm working with
    PHP/mySQL. I would expect that I need to modify this section of the
    code.
    $insertGoTo = "new_page.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    Tried changing the first line to
    $insertGoTo = "MM_openBrWindow('new_page.php',' ',' ')";
    which does not work. I little help would be greatly
    appreciated.

    The only way I know is using javascript.
    Here I give you an example:
    *main.html*********
    <html>
    <head>
    <script language="javascript1.2">
    <!--
    function Change(){
         window.open("child.html","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=120,left=300,top=260");
    -->
    </script>
    <body>
    <center>
    <form name="form1">
    <table>
    <tr><td>Selected value:</td><td><input type="text" name="tf" value="(none)"></td></tr>
    <tr><td colspan="2" align="center"><input type="button" value="Change Value" onClick="Change()"></td></tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    *child.html*********
    <html>
    <head>
    <script language="javascript1.2">
    <!--
    function Change(){
         window.opener.document.form1.tf.value=document.form2.select.value;
    -->
    </script>
    <body>
    <center>
    <form name="form2">
    <table>
    <tr><td>Value:</td><td><select name="select"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select></td></tr>
    <tr><td colspan="2" align="center"><input type="button" value="Change" onClick="Change()"></td></tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    Best Regards!

  • Built in Record Behaviors & Added Blank Lines

    Mac OS 10.4.7 // DW 8.0.2
    ASP VBScript
    Bug Encountered: When using the built-in Insert Record the
    code view inserts MANY thousands of blank code lines between each
    ASP line of code. It can go from only a dozen to
    thousands of blank lines of code. How can I remove all of
    these extra lines without having to manually remove every line on
    every insert record behavior that I use?

    go to link:
    http://www.massimocorner.com/
    Look for Dreamwever> Productivity and get the Format
    Source 1.1 extension.
    Install and apply it.
    "Digital Muse" <[email protected]> schrieb
    im Newsbeitrag
    news:ed48a0$rge$[email protected]..
    > Mac OS 10.4.7 // DW 8.0.2
    > ASP VBScript
    > Bug Encountered: When using the built-in Insert Record
    the code view
    > inserts
    > MANY MANY blank code lines between each ASP line of
    code. It can go from
    > only
    > a dozen to well over 20, up to 30-ish blank lines of
    code. How can I
    > remove
    > these extra lines without having to manually remove
    every line on every
    > insert
    > record behavior that I use.
    >
    > Regards,
    > Monica Knutson
    > Creative Director
    > Digital Design Services, Inc.
    >

  • Error in insertion record

    hi
    i have created a table in access
    and trying to insert record through this form
    but when i compile i get an error
    can any one tell me why i am getting this error
    <html>
    <head>
    <title>
    updatephonebook
    </title>
    </head>
    <jsp:useBean id="updatephonebookBeanId" scope="session" class="updatephonebook.updatephonebookBean" />
    <jsp:setProperty name="updatephonebookBeanId" property="*" />
    <p>update database content
    <form action="updatephonebook.jsp" method="post">
    Last Name:<input type=text name=lastparam><br>
    First Name:<input type=text name=firstparam><br>
    Phone Number:<input type=text name=phoneparam><br>
    <input type=Submit value="add to data base">
    </form>
    <p> content of phone book database:
    <table border=1 cellpadding=0 cellspacing=0>
    <tr><td> Last </td>
    <td> First </td>
    <td> Phone </td>
    </tr>
    <%
    Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection = java.sql.DriverManager.getConnection("jdbc:odbc:updatephonebook");
    java.sql.Statement statement = connection.createStatement();
    Enumeration parameters = request.getParameterNames();
    if(parameters.hasMoreElements()){
    String LastValue = request.getParameter("lastparam");
    String FirstValue = request.getParameter("firstparam");
    String PhoneValue = request.getParameter("phoneparam");
    statement.executeUpdate("INSERT INTO updatephonebook (\"LAST\",\"FIRST\",\"PHONE\") VALUES
    ('"+LastValue+"','"+FirstValue+"','"+PhoneValue+"') ");
    java.sql.ResultSet columns = statement.executeQuery(
    "SELECT * FROM updatephonebook");
    while(columns.next()){
    String last = columns.getString("LAST");
    String first = columns.getString("FIRST");
    String phone= columns.getString("PHONE");%>
    <TR>
    <TD> <%=last %></td>
    <TD> <%=first %></td>
    <TD> <%=phone %></td>
    </tr>
    <%}%>
    </table>
    </html>
    "updatephonebook.jsp": Error #: 106 : unclosed character literal at line 33

    <html>
    <head>
    <title>
    updatephonebook
    </title>
    </head>
    <jsp:useBean id="updatephonebookBeanId"
    scope="session"
    class="updatephonebook.updatephonebookBean" />
    <jsp:setProperty name="updatephonebookBeanId"
    property="*" />
    <p>update database content
    <form action="updatephonebook.jsp" method="post">
    Last Name:<input type=text name=lastparam><br>
    First Name:<input type=text name=firstparam><br>
    Phone Number:<input type=text name=phoneparam><br>
    <input type=Submit value="add to data base">
    </form>
    <p> content of phone book database:
    <table border=1 cellpadding=0 cellspacing=0>
    <tr><td> Last </td>
    <td> First </td>
    <td> Phone </td>
    </tr>
    <%
       Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection =
    =
    java.sql.DriverManager.getConnection("jdbc:odbc:update
    phonebook");
    java.sql.Statement statement =
    = connection.createStatement();
    Enumeration parameters =
    = request.getParameterNames();
       if(parameters.hasMoreElements()){
    String LastValue =
    ue = request.getParameter("lastparam");
    String FirstValue =
    ue = request.getParameter("firstparam");
    String PhoneValue =
    ue = request.getParameter("phoneparam");
    statement.executeUpdate("INSERT INTO
    INTO updatephonebook (\"LAST\",\"FIRST\",\"PHONE\")
    VALUES
    ('"+LastValue+"','"+FirstValue+"','"+PhoneValue+"')
    java.sql.ResultSet
    java.sql.ResultSet columns =
    columns = statement.executeQuery(
    "SELECT * FROM
                      "SELECT * FROM updatephonebook");
                                 while(columns.next()){
    String last =
    String last =
    String last = columns.getString("LAST");
    String first =
    String first =
    tring first = columns.getString("FIRST");
    String phone=
    String phone=
    String phone= columns.getString("PHONE");%>
                                 <TR>
                                 <TD> <%=last %></td>
                                 <TD> <%=first %></td>
                                 <TD> <%=phone %></td>
                                 </tr>
                                 <%}%>
                                 </table>
                                                 </html>Best I can do, it still looks like a mess. Can you do no better, it look awful and no one is going to read it.
    The Great Vagabon Monster

Maybe you are looking for

  • Downloading ESS Business Package

    Hi Gurus, I would like to download the ESS business packaage from SDN. When im doing so and when I click on the download link,noting happens. Is id imperative that I have a licence to download it? Isnt there an ESS BP like sneak preview? How do I get

  • Will CSS setup flows to services in the dying state?

    My goal is to optimize the service keepalive frequency, retryperiod, & maxfailure parameters. 1) Will the CSS setup new flows to a dying service (which is not dead yet)? 2) What about already established flows... Will the CSS continue to route those

  • Touchscreen calibration issues on palm tx after hard reset

    my palm tx touchscreen stopped working.so i did hard reset and deletted all data.now when it reboots, i see the screen with the bullseye target and stylus.i am unable to calibrate the screen with stylus.if i keep touching the screen with my finger,th

  • How to deploy selected process?

    First deployment will include all assets. Thats okay. I need to deploy only selected processes. Any suggestions? Thanks, Nith

  • SaveAs PBM

    Hello. I need to save my current active document as a PBM format file via CS6 javascript. However, I'm running into the problem that there's no PBMSaveOptions object defined that I can pass into the saveAs function. My output always gets converted to