Dynamic forms in php

I'm trying to populate a drop down box in a form(form2) dynamically using a form variable from a different form(form1) on the same php page. does anyone know what i should set the action as for form 1 so that when form 1 is submitted form 2 is populated from the form variable? Any advice is appreciated.

Your could use either method, POST or GET.   <form action='' method="post">
Then put code such as the following somewhere, probably above the forms.
if ($_POST['name_of_form_one_submit']){
$variable1 = $_POST['variable1'];
Then your dropdown in form2 will dynamically be populated with the variable as follows:
<select name='drop_down_variable_name'>
option value= "<?php echo $variable1 ?>"><?php echo $variable1 ?></option>

Similar Messages

  • Remove scroll bars in dynamic form

    Hi all,
    I'm starting to kick myself every time I put a post here.  Apologies and thank you for everyone's help - slowly but shortly I'll be one of the people answering the questions.
    Really easy one (I think).  A have a dynamic form, which updates a dynamic list.  Is there a way to alter a text area in the dynamic form, so that it is a fixed area  i.e. when you get to the end of the line/characater usage, the cursor goes down to the next line rather than creating a horizontal scroll bar and running forever into the distance.  I have played around with Wrap options without luck, the css doesn;t seem to play much of a part as this is an actual text area in Dreamweaver as opposed to a CSS clipping in the list.
    Thanks again,
    Nathan

    NJFuller wrote:
    Perfect! Thank you Albert.  Is it possible to add virtual wrap to a box in a dynamic list?  As that is not presented in a normal html form'ish style way.....?
    Hi Nathan,
    as a Dynamic List displays pure text only, you´ll need to help yourself by formatting the displayed column using PHP. There are several ways to add "virtual" line breaks, and the most straightforward (though certainly not the most elegant) solution would be to apply the PHP function wordwrap which wraps a string to a given number of characters.
    The following example will wrap the text after 40 chars, and the "wordwrap" function will - as always - have to replace ADDT´s default "KT_FormatForList" function:
    <?php echo wordwrap($row_rsqueryname1['columnname'], 40, "<br />\n"); ?>
    Cheers,
    Günter

  • Broken Delete button in Dynamic Form. For the ADDT gurus!

    I have a feeling i may be at Günter's mercy on this one. Hope you have time to look at this; of course for any and all, the same applies!
    I have a dynamic list which i spent quite a lot of time with - rearranging elements within the ADDT generated KT_tng table. Just moving one recordset piece can take up to 30 seconds, so it takes QUITE a while with a lot of data to move.
    Anyways, i seem to have "broken" the delete button in mine. I hope someone can help me fix it, i really dont have time to redo all the changes i did to the dynamic list layout. (i did test as i went to make sure i didnt break it, but guess i just missed a piece..) I changed mainly the location of things, and CSS.
    I have an older version where the delete button works. I have compared but cannot find the answer. Both versions do everything else, live, with the database & their respective dynamic forms.
    I have all 4 files live, and unprotected, for now, and txt versions of all four. If you need to test anything with the live pages, its ok, most of the data is dummy data.
    Ive been saturated in ADDT dynamic lists, and dont have a background of hand coder, but am learning a lot, quick. so i have tried hard to understand this exact issue i created - im not looking for others to do my work. just my little disclaimer :)
    /* TEXT VERSIONS */
    /*Broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.txt
    http://www.aquatictrainingservice.com/admin/courses_form.txt
    /*Working delete button */
    http://www.aquatictrainingservice.com/admin/courses_list2_.txt
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.txt
    /*LIVE PHP VERSIONS*/
    /*broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.php
    http://www.aquatictrainingservice.com/admin/courses_form.php
    /*working delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list2_.php
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.php
    best
    ben

    Include the following javascript code under the onClick event of the delete button.
    It works for me.
    onClick:
    var x=window.confirm('Are you sure ?')
    if (x)
    do_event(this.form,this.name,1,'ON_CLICK','');
    else
    return false

  • Validation of multiple empty fields in dynamic form

    Hi,
    I have created multiple fields dynamic form consisting of both mandatory & optional fields. Since the mandatory fields are validated by default, I want to validate the optional fields while submitting as PDF document dynamically and prompt me to continue or discard the submission. Also validating each & every field is not valid option as my form contains more than 200 fields.
    I have tried with the below script which I successfully used to lock the form but in validating the empty fields I have a problem. Although I populate all the fields in the form, still I receive the validation message. Can anybody help me out on this issue?
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    if (oFields.item(nNodeCount).isNull = 1 && oFields.item(nNodeCount).length < 0){
    xfa.host.messageBox("All the form fields are not completed, Do you want to continue","Field Validation", 2, 2);
    break
    Thanks,
    Jay

    I discovered how to accomplish this using the Manage Dynamic Form Wizard and changed the "Display as" field property from "Text field" to "Text" for the fields I wanted read only.
    Now I have another problem, the properties of one of the fields (for comments) was "Text area" when I changed it to "Text" I now have this extremely long line that streches the width of the browser.
    Is there a way to get this line to wrap? This is he line I'm working with...
    <td class="form_results"><?php echo KT_escapeAttribute($row_rssubmissions['sub_comments']); ?></td>
    Dennis
    I found the answer to this problem, Günter had answered it in another post.
    http://forums.adobe.com/message/1875032#1875032
    Dennis

  • Dynamic forms not saved properly

    Hi ,
    I have a dynamic forms created using Adobe 8 LC.
    After the form is generated thorugh application when I try to save the dynamic pdf using save button in Pdf toolbar, there are null values or extra rows of data being added to the dynamic pdf. The javascript calculations are not being displayed for eg totals .
    I am unable to figure what is causing this extra rows to be added in the pdf. When I give a print option to PDF, the dynamic document is printed correctly without any extra rows.
    Please help..
    Thanks,
    Vidya

    Hey Guys,
    Thanks for the tip Gunter...I tried it and it didn't work.
    When I insert, I get redirected to a "page not found", but the record gets inserted into the database.
    I'm wondering if it is my Managed Site. I keep fumbling around until I get my site working. Currently I have my Local Info, which is my local folder and local IIS HTTP address. I have my Remote Info which is Local/Network Access and my Remote Folder on the LAN. I'm getting confussed with what my Testing Server should be. I have set my Server Model of PHP MySql and Access of Local/Network and the Tesing Server Folder as the same location as my Local Folder. My URL prefix is the same asa my local IIS HTTP address. Does all this look right?
    The PHP version is 5.1.6

  • Dynamic Forms & Lists

    Hi All
    i have 4 tables (A, B, C, D) and i created dynamic list using Dynamic List Wizard and the result was ok showed all the Fields (using recordset).
    now i wanna create a Dynamic form to insert into those 4 tables, so from the dynamic list if i click edit, delete... it takes me to the same page where i can edit, delete or update.
    i tried many things like insert into 2 tables but did not work because the link transaction did not work plus in this case i have to create delete page, insert page and update page which already made me lost.
    please help

    Hi grandlorie,
    Sorry for bothering, but is there anyone who can explain in details how to do that i can not go any further with my project?
    in regards to the Custom Triggers I mentioned:
    1. please open the ADDT helpfile from the Control Panel´s Help button
    2. read the section "Custom transaction and triggers", which also provides some PHP code examples to get you started.
    You will notice that Custom Triggers (respectively what you can do with them, respectively what code should go in there) doesn´t allow for providing ready-made solutions, as it all depends on aspects like your table structure etc.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Dynamic forms from 2 tables

    Hi, (Sorry for the long post)
    DB Table one contains 4 fields:
    EventName
    Venue
    Price
    Date
    Form one is used by the owner to enter the data for an event into the DB Table One - there are several different events.
    DB Table two contains 7 fields (4 of the fields to retrieve data from table one)
    Name
    contact
    email
    Event Name
    Venue
    Price
    Date
    Form two is for a person registering for one of the events entered into DB table one.
    I set up a recordset called rsListEvents and then used the "Insert Record Form Wizard" to create form two with the following fields:
    EventName
    Venue
    Price
    eDate
    which I set to defaults
    {rsListEvents.EventName}
    {rsListEvents.Venue}
    {rsListEvents.Price}
    {rsListEvents.eDate}
    I have a page listing the events and when register for this event is clicked I was hoping the data from table one would be entered into form two and the user then fills in the rest manually where all the data is entered into DB table two.
    Unfortunately even though the URL indicates that the correct information from table one should be entered into form two .php?id_event=2
    The data from DB table one row id_event=1 is always displayed no matter what the record number is.
    Can anyone tell me where I have gone wrong
    Thanks
    laurence

    I am simplyfing this so I can get help on a basic level ( Mr basic)
    Why does this not work?
    I set up a Dynamic List using DB Table 1 and set the detailed page.
    I set up a record set on the detailed page using the same table.
    SELECT *
    FROM addEvents
    When I test I get the results from ID 1 no matter which one I choose. But when I test the RS I get both dummy entries 1 and 2
    So I am missing something that needs to be appended to the URL.
    L

  • Using dynamic form wizard dont allow decimals

    using the dynamic form wizard converts a given number using decimals in integer !!
    example : if i use a text field ( in a form generated with the wizard) that will input a number with decimals : 123.44, the form sends 12344 to the db.
    i´m using an access db (2003) and the numeric fields are declarated as number type
    any ideas to solve this?
    tanx

    The problem is the same when using the Insert Record Form Wizard. I've made all the fields mandatory, but the file field still doesn't look like it has the content of the form passed through to the database. I've recreated the page, and double checked that the correct links are being made between the form inputs and the database fields, but still get the following:
    ]Error:
    ]SQL error: Field 'eventDoc.eventDocFile' cannot be a zero-length string..
    ]Developer Details:
    ]SQL error: INSERT INTO eventDoc (eventDocEvent, eventDocFile, eventDocText, eventDocTextWelsh) VALUES (32, '', 'Test file to check insert behaviour', 'Test file to check insert behaviour (Welsh)'). (SQL_ERROR)
    tNG Execution Trace - VIEW
    * tNG_insert.executeTransaction
    o STARTER.Trigger_Default_Starter
    o tNG_insert.doTransaction
    + BEFORE.Trigger_Default_FormValidation
    + tNG_insert.prepareSQL
    + tNG_insert.executeTransaction - execute sql* (THIS LINE IN RED)
    + ERROR.Trigger_Default_Insert_RollBack
    * tNG_insert.getRecordset
    * tNG_insert.getFakeRsArr
    * tNG_insert.getLocalRecordset
    * tNG_insert.getFakeRecordset
    * tNG_insert.getFakeRecordset
    I've also tested on both my local development server and the hosting server now, and have the same problem on both. It also happens if I just create the form, but don't apply the file upload behaviour - so it seems like it might be a problem with the supplied behaviours and how they handle the content of file inputs from forms.
    I've only used the file upload in PHP before, where it seemed to work quite happily.

  • Cannot use dynamic form wizard

    Can anyone tell me how to fix this? The file will not update and images will not load.
    Fatal error: Cannot instantiate non-existent class: kt_fileupload in /var/www/vhosts/xxxxx/httpdocs/includes/tng/triggers/tNG_FileUpload.class.php on line 182

    Thanks a million. I don't know how it is that all files didn't get loaded but that was the issue.
    Jedi
    Date: Mon, 2 May 2011 22:48:00 -0600
    From: [email protected]
    To: [email protected]
    Subject: Cannot use dynamic form wizard
    You may not have the full set of ADDT files uploaded to your server. Make sure that you have uploaded /includes/common/lib/file_upload directory and the 2 files it should contain: KT_FileUpload.class.php and KT_FileUpload.php.
    Hope that helps.
    >

  • Dynamic Form ---- How to define mx:model or Param/value

    I have created a dynamic Form reading input type from
    external .xml file. Does anyone have advice concerning sending the
    form data to an external .jsp or .php file without knowing what
    your <mx:Model> will be? Whenever I try to write:
    <mx:Model>
    <root>
    <q1>data</q1>
    <q2>data</q2>
    </root>
    </mx:Model>
    I receive this error: 1120:Access of undefined property
    event. I am sure this is because the form elements are created
    using actionscript and not within mxml.
    I also tried sending it within actionscript using the
    send.data(param) like this, same error:
    var service:HTTPService = new HTTPService();
    //service.contentType = 'application/xml'
    service.resultFormat = 'e4x';
    //service.destination = 'DefaultHTTP';
    service.url = 'URL removed';
    service.method = "POST";
    service.addEventListener("result",handle_loginResult);
    service.addEventListener("fault",handle_loginfault);
    var o:Object = new Object();
    o.q1 = event.q1;
    o.q2 = event.q2;
    service.send(o);
    Example
    of the Application with elements rendered
    If you would like to see the complete code:

    What are you expecting "event" to refer to?
    Put an id on your Model tag, then you can use it to reference
    the data.
    Note, mx:Model builds a tree of dynamic objects. You will be
    happier in the long run if you use mx:XML instead.
    Tracy

  • Designing dynamic forms

    Hello, I've been given a 20 page form in pdf that needs dynamic fields added. The auto detect in Acrobat is useless and I opted to open each page in Illustrator then copy the fields to Indesign and export, but the Acrobat auto detect is still useless and inconsistent, exporting some items and not others and exporting some squares as text, some as check boxes and some as radial even though they all have the exact same formatting and size (tried making them circles). Is there a way to tag the objects so they export as they should or some software with a bit more logic than Acrobat?
    At this stage there is no way that I can find to rectify the issues without manually placing the majority of fields which will take days. There must be a solid way to design dynamic forms and wondering if any gurus out there have any tips. I am operating CS3 (will have CS5 in a few days if the client can wait).
    Thanks very much for any help.
    Cheers, Leah

    InDesignSecrets has some information on creating forms by using a hidden layer in InDesign to include elements that will help Acrobat auto-detect the form fields.
    http://indesignsecrets.com/automated-forms-with-acrobat-8-and-indesign.php
    Michael Murphy has also done a couple of videos on Forms, in Episode 52 (basics) and 53 (advanced topics). You can find them here:
    http://www.theindesigner.com/blog/episode-52-acrobat-friendly-form-design
    http://www.theindesigner.com/blog/episode-53-acrobat-friendly-form-design-part-2

  • Error Message from DWCS4: Error in line 27 of form.js.php

    Hi
    I did a seach of the forum for this and came up blank, so here goes although I am sure I am not alone with this one...
    This week I installed CS4 and get an error reported whenever I open up an ADDT Dynamic Form:
    "There is a syntax error on line 27 of form.js.php. Code hinting may not work until you fix this error."
    The line in question is:
    NXT_Messages['are_you_sure_move'] = '';
    Anyone else seen this ?
    Should I be concerned ?
    Thanks.

    Hi Wollombi,
    I´ve seen this too with DW CS4, but in fact there´s nothing to "fix" because it´s the same code which was used by ADDT 1.0.0.
    I just guess that the DW CS4 parser stumbles across the nested apostrophes which don´t seem to produce PHP errors in the browser.
    Should I be concerned ?
    I´ve always ignored this message because the forms work when opened in a browser
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Uploaded Admin to Server - Dynamic Forms don't work

    Okay, got everything how I want it on the administration end and it works tested locally.
    Uploaded to the web server and now the Dynamic Forms that I created using the Wizard are giving me an error.
    Error:
    Internal error.
    Developer Details:
    tNG_multipleUpdate.getLocalRecordset:
    Error message:
    No database selected
    SQL statement:
    SELECT First_Name,Last_Name,statusID,divisionID,owner_picture,ownerID, ownerID as kt_pk_owner FROM owner WHERE ownerID=3. (MUPD_RS)
    tNG Execution Trace - VIEW
    Thought maybe an include didn't get uploaded so redid those.
    The Dynamic List page works, so the connection key is fine. The public site is fine too.
    Suggestions?
    Cheryl

    Stepping back to the root cause (again, the SQL error message), what you should look at is that your database configuration is correct for the live server. This line:
    <?php require_once('Connections/conn_sqh.php'); ?>
    shows where the connection data is stored in the automatically generated files. Please ensure that the:
    $database_sqh = "some_schema_name";
    line has the correct value for your live server in place of "some_schema_name" as that is what the root cause of your error message is. You can change this in the ADDT Control Panel->Login Settings->Database tab by using the using the "Define.." button on the connection.
    There is likely an easier way to access this info, but I would recommend simply rewriting the connection file to change the values based upon the value of $_SERVER['HTTP_HOST'] to get something that works locally and remotely without any changes. If you change the file, then ensure you set the parameter before modifying it based on the host:
    $hostname_someconnection = "localhost";
    if( isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] != 'localhost' )
        $hostname_someconnection = "someconnection.local";
    If you fail to do this in the correct order, then you can break the GUI. This technique lets you use a proper FTP tool for upload to a site which can save huge amounts of time but it also adds to your administrative overhead.

  • Dynamic form driven Join Querys

    For my Master Thesis i was developing a form driven dynamic PHP Tool for executing Join Querys. Its based on PHP4, Apache and the Oracle 9.2i Database. I know that the Oracle Discoverer allows also dynamic Join Querys but just prepared by and Administrator. It works like you know it from the OracleEditor or some other Ad-hoc Query Tools, but the new main feature are the Joins. The Selection of the Tables and Columns is realized by Forms.
    My Questions are, whats your Opinion about my Tool could it be usefull? Is there a Interest for a Tutorial how you can realize dynamic form driven Join Querys with PHP and Oracle.
    I would like to post a screenshot here is that possible?
    Message was edited by:
    LOD
    Message was edited by:
    LOD

    So at first i mean dynamic Joins my tool makes it possible to create the Joins by chooseing Tables and Columns. This is just a Part of my Tool i called it AdOra. It contains 2 Scripts one for the SFW Querys and the other for the Joins. The interesting Part is the Join Script.
    This Script contains 4 HTML Forms at the first you choose the Table1 wich are loaded from the user_tables. In the second Form you can choose the Table2 to make sure that the user just builds Join Querys with Sense i check the Keys in the Script before depended on the Table1. After this in the third Form you are able to choose muliple columns for Table1 and Table2. The Last Form allows to choose the Kind of Join you want to create.
    The Script works without any manually SQL Code entrys. Its complete Form based. The user doesnt know about the Primary and Foreign Keys of the Tables. After the kind of Join is set i send the builded Query to the Database and give the Resultset out in a Table.
    About i wrote my MA Thesis in German i need some Time to translate the Manual but i will post some screenshots soon.
    Thank you for your Interest cj
    screenshots:
    http://pixpack.net/20070628180119092_elonnvgzdo.png
    http://pixpack.net/20070628175405792_xyhjwegdfs.png
    The Screenshots showing the Adora Join Script Resultset after a Join and a Self Join the SQL Statements are shown over the Resultset Table its created dynamic by the script

  • ADDT Dynamic Form + TinyMCE

    Gunter,
    I have followed your tutorial on adding TinyMCE to ADDT's Dynamic Form. It works great when editing 1 record at a time, but when I choose to edit more than one record at once, it does not work. Specifically, the tinymce toolbars will load/appear for the appropriate textareas, and the textareas will appear as well, but the textareas are empty and will not allow you to type in them.
    Any ideas on making it work properly for multiple edits? Thanks for any help.
    I am using:
    Dreameaver CS3
    ADDT 1.0.0
    PHP5/MySQL5
    Code below:
    Script in HEAD:
    <!-- TINYMCE -->
    <script type="text/javascript" src="../Scripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    editor_selector : "bioText",
    </script>
    <!-- END TINYMCE -->
    Instance used in BODY:
    <td class="KT_th"><label for="bioText_<?php echo $cnt1; ?>">Bio Text:</label></td>
                <td><textarea name="bioText_<?php echo $cnt1; ?>" id="bioText_<?php echo $cnt1; ?>" cols="50" rows="15" style="width:500px" class="bioText"><?php echo KT_escapeAttribute($row_rsbmg_bios['bioText']); ?></textarea>
                    <?php echo $tNGs->displayFieldHint("bioText");?> <?php echo $tNGs->displayFieldError("bmg_bios", "bioText", $cnt1); ?> </td>
    Thanks. Any help appreciated.
    DL

    dloval wrote:
    Gunter,
    I tried what you recommended (remove the trailing comma), but the problem persists. My code now reads in the head as follows:
    <!-- TINYMCE -->
    <script type="text/javascript" src="../Scripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    editor_selector : "bioText"
    </script>
    <!-- END TINYMCE -->
    Well, I see that you´re using TinyMCE´s "advanced" theme, but without specifying any additional theme options like what you see on the TinyMCE website itself and in the sample script I provided -- dunno if this happens because of the missing "advanced" options, so please try and switch TinyMCE to a "simple" theme which doesn´t need any extra configuration.
    theme : "simple",
    ...and see if this works.
    Instead of that you can also try keeping the "advanced" theme and include the rest of the configuration parameters I provided in the sample script.
    Cheers,
    Günter

Maybe you are looking for

  • Magic Trackpad not working on iMac after 10.8.5 update Help!

    The Magic Trackpad was working fine antil I did the OS X Lion 10.8.5 Update yesterday and the trackpad has not worked since.

  • Give me an E72 with a dual sim

    My dream phone! A nokia e72 with a dual sim.   Only a real traveller with business interest in multiple countries will know the true value of a dual sim phone.  I have been using nokia phones for over 15 years now.  I always carried 3 to 4 phones at

  • Active Directory integration: Invalid Token Error in Verification Service

    I'm having problems with Active Directory integration. I'm able to browse users in the task routing slip in JDeveloper. But I'm unable to login to the worklist application. Getting an "Invalid Token Error in Verification Service" error. Any pointers?

  • Div display in and out of dreamweaver

    As an experiment, I am painstakingly hand coding a template using css to create boxes with rounded edges. I have what looks like an L shaped box on its side on the left top corner with a small box directly to its right. Nestled in the "Gap" of this "

  • Using an Aggregate Function in a Sub-SELECT

    Ok. I have this Sub-SELECT and I'd like to base my outside query based on the resyult set of my inner Sub-SELECT which contains an Aggregate function. Is that possible??? Here's the Query... SELECT * FROM CUSTPRO.CPM_PND_TRAN_HDR CPMPNDTH INNER JOIN