Help get a date into a form

Don't know what is happening here, but its probably something simple and I'm missing something obvious...

Basically I have a form to add a record to a database table.

I have two date in the table fields, of type Date.

This is my code for the record is added:

Add columns

$ins_clients-> setTable ("customers");

$ins_clients-> addColumn ("name", "STRING_TYPE", "POST", "name");

$ins_clients-> addColumn ("company", "STRING_TYPE", "POST", "society");

$ins_clients-> addColumn ("Web site", "STRING_TYPE", "POST", "Web site").

$ins_clients-> addColumn ("as is", "STRING_TYPE", "POST", "tel");

$ins_clients-> addColumn ("mobile", "STRING_TYPE", "POST", "mobile");

$ins_clients-> addColumn ("email", "STRING_TYPE", "POST", "email");

$ins_clients-> addColumn ("enquirydate", "DATE_TYPE", "POST", "enquirydate");

$ins_clients-> addColumn ("business", "STRING_TYPE", "POST", "business");

$ins_clients-> addColumn ("future", "STRING_TYPE", "POST", "future");

$ins_clients-> addColumn ("potential", "STRING_TYPE", "POST", "potential");

$ins_clients-> addColumn ("reminder", "DATE_TYPE", "POST", "reminder");

$ins_clients-> addColumn ("notes", "STRING_TYPE", "POST", "notes");

$ins_clients-> setPrimaryKey ("ID", "NUMERIC_TYPE");

And these are the fields of the form to the date:

< input type = "text" name = "enquirydate" id = "enquirydate" value = "<?" PHP echo KT_formatDate ($row_rsclients ['enquirydate']); ">" size = "32" / >

< input type = "text" name = "reminder" id = "callback" = value "<?" PHP echo KT_formatDate ($row_rsclients ['callback']); ">" size = "32" / >

That looks all right.

But even when I enter dates in the format of 2010-09-23, everything that is written back to the database is 0000-00-00.

Any ideas where I'm wrong?

Thank you.

DATE_TYPE is probably trying to insert the syntax for the parameter to Try datetime e.g. 2010-09-23 08:45 the transaction for STRING_TYPE date instead of the DATE_TYPE example:

$ins_clients-> addColumn ("enquirydate", "DATE_TYPE", "POST", "enquirydate");

TO

$ins_clients-> addColumn ("enquirydate", "STRING_TYPE", "POST", "enquirydate");

$ins_clients-> addColumn ("reminder", "DATE_TYPE", "POST", "reminder");

TO

$ins_clients-> addColumn ("reminder", "STRING_TYPE", "POST", "reminder");

Tags: Dreamweaver

Similar Questions

  • Could be able to enter data into Web Forms

    Hi guru

    I use Hyperion Planning 11.1.2.2.I have access to create Web forms and have created Web forms, but I have to be able to enter data in Web forms, what could be the problem with it.

    Please help me...

    Thank you and best regards,

    Krish.

    It took several times before, have a read of Hyperion Planning and much more...: why my form data is always read-only...!

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Loading data into Web Forms

    Quick question: can load us data into planning directly using web forms? I believe that we can. Apart from creating a web form and begins to break in numbers, is there anything else to do?

    Web forms are given inputing so the answer is Yes, you are really enter data into essbase through planning.
    Just to design your web form and you are ready to enter data.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • need help: get SMS data in application

    I started an SMS application, here is the code for displaying the TEXT in my application, as soon as the phone receives an SMS. I looked at this thread: http://supportforums.blackberry.com/t5/Java-Development/SMS-Application/m-p/63948 , but I still couldn't get it to work. Any ideas? Thank you very much!

    import net.rim.device.api.ui.UiApplication;
    
    public class ShowSMS extends UiApplication {
    
        public static void main(String[] args) {
            ShowSMS app = new ShowSMS();
            app.enterEventDispatcher();
        }
    
        public ShowSMS() {
            ShowSMSScreen mainScreen = new ShowSMSScreen();
            pushScreen(mainScreen);
        }
    }
    
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class ShowSMSScreen extends MainScreen{
    
        public ShowSMSScreen(){
            add(new LabelField("waiting text msg"));
    
            ListeningThread thread = new ListeningThread(this);
            thread.start();
        }
    
        public void addLabelFiled(String text) {
            add(new LabelField(text + "\n"));
            }
    }
    
    import java.io.IOException;
    import javax.microedition.io.Connector;
    import javax.microedition.io.Datagram;
    import javax.microedition.io.DatagramConnection;
    
    public class ListeningThread extends Thread { 
    
        ShowSMSScreen mainScreen;
        public ListeningThread(ShowSMSScreen mainScreen) {
        this.mainScreen = mainScreen;
        }
        public void run() {
            try { 
    
           DatagramConnection _dc = (DatagramConnection)Connector.open("sms://");
                        for(;;)
                    {
             Datagram d = _dc.newDatagram(_dc.getMaximumLength());
                           _dc.receive(d);
                           byte[] bytes = d.getData();
                           String address = d.getAddress();
                           String msg = new String(bytes);
                           mainScreen.addLabelFiled(address);
                           mainScreen.addLabelFiled(msg);
               }
          } catch (IOException e) {
                   System.err.println(e.toString());
          }
     }
    }
    

    To develop on the post of Mark, what you do above runs the datagram receiver in the thread of the event, which is strictly verboten. Any blocking operation performed on the event thread can / will cause the event queue to overflow, resulting in an exception "the program is not responding.

    Conversely, you CANNOT access the user interface of a backgropund thread - only from the event thread.

    Thus, you need to separate these two. You can start a thread to handle the datagram, then use invokeLater() in this thread to place your data on the user interface.

  • What trigger to use to insert data into the table db forms

    Hello

    My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
    I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
    Is - shutter release key of the form-level validation?

    Please notify.

    Thank you
    Didi.

    You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.

    Hi didi.
    And this is my last post I'll sleep. ;)
    Take form level trigger named preform
    and write on it

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • Can someone show me how to get the data of this vi in four columns in a spreadsheet file.

    I'm trying to get the data into four columns on a worksheet. The data consists of two channels and two measures, a maximum voltage and a voltage after x seconds. I enclose the code. Any help would be great. Thank you.


  • Collection of data from several forms

    Hello

    I am building an application, where to get the data from different forms on different pages.

    I use hidden fields to send the value from one page to another. This method works for a transfer to top, but when I use hidden fields to transfer data from the 2nd to the 3rd page, I lose the data for the 1st page.

    I tried using the query as string:

    < form method = "post" action = "ww" = name "kk.cfm? option = 1 & name = username # & entry = #id #" >

    Its not working for several page data transer, just for the transfer of data from single page.

    I just do it? Please help these rookie.

    Thank you

    Vijayvijay77.

    firstForm.cfm:


       
       
           
           
       
       
            
           
       
       
           
       
    ID of the user:
    Name:

    secondForm.cfm:


       
           
           
       
       
           
           
       
    ID of the user:#FORM.userID #.
    User name:#FORM.userName #.







       


           
       


    thirdForm.cfm


       
           
           
       
       
           
           
       
    ID of the user:#FORM.newUserID #.
    User name:#FORM.newUserName #.

    Please have a try with the above stuffs. Please copy and paste your code here if you still encounter a problem here.

    FYI - please make sure that you correctly use cfoutput tag.

  • Help with POST data if multiple selections are chosen

    I created a form with a menu (list) which includes all 50 States. I used the MESSAGE option, as well as PHP, to treat form data, which will be sent to me. The list menu looks like this: http://askdave.info/help/states_menu.gif and I have "Allow multiple selections" checked in the property inspector.

    If the user chooses several States, I want EACH of these States to be included in the email that I receive. Right now, if I check several States, I get only the latest state selected. For example, here is the email that I get after I check 5 different States. http://askdave.info/help/FormData.gif

    Problem-> in this email, only one State is indicated (Hawaii), even if I selected 5 different States. How can I get the data from the form to list all THE States that are checked?

    Here's what I have:

    < form name = "form1" method = "post" action = "process.php" >
    < input type = "hidden" name = "required" value = "name, phone, email, States, capital" / >

    And then for the menu that lists the States, I have:

    < label >
    < select name = 'States' size = '7' several id = 'States' >
    all States < option > < / option >
    Alabama < option > < / option >
    Alaska < option > < / option >
    Arizona < option > < / option >
    Arkansas < option > < / option >

    and so on...

    What Miss me? How can I get the PHP script to send multiple values, if multiple values are selected? (I'm new to PHP, so go easy on me.) I can post my code, if necessary.) Is this a PHP problem, or do I have to add something to the HTML form?

    Hello

    >>
    I think that DynaForm is synonymous with dynamic form
    >>

    This makes some sense ;-) I was wondering just because there is a pre-made script called DynaForm here, but it has a different 'Logistics' than yours.

    However, both "DynaForm" versions are pretty basic, because they deal only with non-multiple values - fields as a single line, texareas and select´s non-multiple of form input fields. Your script for example just loops through all the existing form fields using the method "foreach":

    Out of form fields and values.
    foreach ($this-> post as $field-online $value) {/ / loop through all form fields}
    If ($field == "required") continue;
    $this-> _addLine ($field, $value); Here´s where the field´s name/value consolidation happens
    }

    .. .and simply includes a 'value' with his 'name' associated field´s. The problem is: this method works, simply to have only 1 value - but any 'multiple value' form fields (for example your 'States' select or check box groups who spend several values as well) require a separate "foreach" in the script treatment, fields and this hasn´t been incorporated here.

    That said, I would suggest using another solution pre-made as PHP Form Mail script that s capable of managing your multiple values - scenario naturally.

  • Insert data into Oracle DB from MS Access Forms

    Dear professionals,
    How to insert data into the table that reside in the Oracle DB through MS Access forms?
    We have already created ODBC link tables Oracle allows you to select data, and it works.
    Unfortunately, we can select only the data, but insert, delete and update are not available via MS Access form, even if the user has all permissions on the oracle DB (grant select, insert, update, delete on oracle_table to access_user).


    driver: Microsoft ODBC for Oracle
    MS Access 2003
    Oracle DB 10.2

    THX in advance,
    Adnan

    One would need to know what means "not available". You get a specific error? As far as I know your statement is simply incorrect.
    There are perhaps incompatibilties between DLLs Microsoft and Oracle, I would avoid the Microsoft ODBC for Oracle driver like the plague!

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • How can I get data from child form

    Hello.
    IM an adapter to get the data in the main form based on the Instance of coding key.
    using this piece of code, I can get all the data in the main form.

    String response = "";
    formData tcResultSet = formIntf.getProcessFormData (Key);

    * if (formData.getTotalRowCount ()! = 0) {*}
    String [] columns = formData.getColumnNames ();
    * for (int i = 0; i < columns.length; i ++) {*}
    * response = response + columns [i] + '=' + formData.getStringValue (columns) + "\n";* ".
    *}*
    *}*

    Anyone know how to make data on child of forms?

    Thank you.

    Hello

    Try the following code:

    tcFormInstanceOperationsIntf tcforminstanceoperationsintf = apiFactory.getUtility ("Thor.API.Operations.tcFormInstanceOperationsIntf") (tcFormInstanceOperationsIntf);

    tcResultSet procChildFormDef = tcforminstanceoperationsintf.getChildFormDefinition (tcforminstanceoperationsintf.getProcessFormDefinitionKey (procInstKey), tcforminstanceoperationsintf.getProcessFormVersion (procInstKey));

    procChildFormDef.goToRow (0);

    long procChildInstKey = procChildFormDef.getLongValue ('Structure Utility.Child Tables.Child Key');

    tcChildResultSet = tcforminstanceoperationsintf.getProcessFormChildData (procChildInstKey, procInstKey);

    From there, you will get the child form result for the data set, you can loop and get the data you want.

    Hope this helps.

    Thank you best regards &,.
    Ankit

  • Is there a way to get the data for submission of form of eloqua using the REST API?

    I was wondering if there is a way to get the data for submission of form of eloqua using the REST API?

    Thank you

    On the page that egan related, there is a 'RawData' field for FormSubmit activities. In this area, the raw sending the form query string is returned.

    Whatever it is, you can get this info from the activities of the API block, or the endpoints data Rest API.

  • I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows?

    I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format.  How can I get the pdf data into the columns and rows so that I can do the calculations?

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • How to create a database of data entered into a form?

    I created a poll with Word and have been recording data with pen and paper.  For data entry I thought that it would be much easier to simply import the Word document into PDF forms and click / type data in an electronic form rather than create a whole Excel worksheet that would be in a completely different format of the actual shape.  But after you open the form in Adobe, I realized it might not be a way to store multiple files in a single file.  Is there a way to do it, or I wouldn't be able to save each questionnaire completed in separate pdf format?

    Yes, but there's a command built into Acrobat that allows you to select these files and convert them to an Excel spreadsheet with all the data in it in one command. You don't need to do a file at a time...

  • Help: How to transfer data from one form to another form form

    Hello:

    I was wondering how / if it is possible to transfer data from form from one form to another form. I create a flow of forms, which are as follows: form of Incident report-> form of risk analysis-> error-> report form decision support survey Standard-> report form of risk control-> form of mitigation-> etc... You get the gist. It would be very time-consuming to constantly transfer the standard who, what, when, where and how from one form to the other. I was wondering how do? I have looked around on the net and this forum and couldn't find a tutorial or a guide? Is this possible with Adobe forms?

    I use a XML schema for the form to preload a list of employees and the standard list information and then publish the form to submit in PDF format for opening and tracking form mobile device. I notice that I can export the data in a form that is distributed in XML but I can't import in a distributed form. I'm a newb with code, but may contain a little of my own.

    An example of how to achieve this with a field name or something would be greatly appreciated! If you need anything, or a copy of the forms let me know!

    Thank you kindly,

    Al

    Hi Al,.

    I have here an example where the data in a single form are 'communicated' to other forms. Please note that there are specific script in each of the forms. It's a work in progress and one day I'll come back make a more polished example: http://assure.ly/qQivbm.

    See also John Brinkman's blog for a different approach: http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_1.html and http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html.

    Good luck

    Niall

  • Import Excel data into Form Designer

    I developed a dynamic form in Livecycle designer that will be sent to hundreds of schools throughout Nebraska.  There is a table in this form that has buttons to add or remove a line while dependent students informtion can be entered in this table. How I shape now works perfect for most schools, however; with the largest schools that will enter in over 200 different lines of information, it will be a long unessarily task.  Most of these schools already have the information that we solicit in an Excel file.  Is it possible for an end user of this form, using the adobe reader software to import excel data into the table?

    -Susann Wenzel

    It is possible, but you will find may be more difficult than what it's worth.

    1. you must manipulate the worksheet to make it look like a DB

    2. you must set up an ODBC connection on the system running the form and the worksheet...

    3. you would have to change to point to the worksheet from the definition

    4. you wish Reader the form using LiveCYcle Reader Extensions to allow the ODBC connection occurs in the drive.

    Paul

Maybe you are looking for

  • I would like to disable when Firefox automatically fills in forms

    IN Windows 7 on 16 Firefox I want to prevent Firefox to fill in forms automatically. I spent options, privacy and choose custom and unchecked the boxes, so it's not remember forms. I hit OK, but Firefox still automatically fills in forms. When I go i

  • Can not post response to thread unique iMessage

    In a thread of iMessage instant message which lasts about 6 months, with two other people, I can is no longer a 'box' answer - there is no place for me to respond to messages. I can answer on my iPhone but not on my Macbook Pro. I can answer (the ans

  • Window pops up telling me that I have registored my gateway device

    Window pops up telling me that I have registored my gateway device, I know because I registored TI. Appears again and again, me taking off full screen. How can I get rid of this pest?

  • High ping

    I am rlly frustrated right now, because after I got my new laptop with windows 7, my ping has increased from 80 ms to bounce of 120-250 and it hard lagg. My server in unplayabole, I tried all of these fixes as w7: I tried writing netsh interface tcp

  • Windows Media Player Windows 7

    Ripped CD 3 yesterday without any problem. Today, I insert a CD, the drive reads it for a fraction of a second (I see it flash to the top), it disappears and the CD is ejected. The option to rip at the top of the screen does not light. I tried with m