1. #11
    Ext User
    Join Date
    Feb 2008
    Posts
    146
    Vote Rating
    0
    italoc is on a distinguished road

      0  

    Default


    it is very strange...

    i have try to WRITE the formpanel for 2 times.. and i see 2 formlogin and work.. but if i write only one formlogin don't see anything.. i think that my problem is a syntax problem...

  2. #12
    Ext User
    Join Date
    Feb 2008
    Posts
    146
    Vote Rating
    0
    italoc is on a distinguished road

      0  

    Default


    i have try to insert 2 formlogin only for test and work but when i delete 1 form don't work,, i don't know why!!! i think that i have a syntax problem...

  3. #13
    Ext User yao_jorjes's Avatar
    Join Date
    Feb 2008
    Posts
    1
    Vote Rating
    0
    yao_jorjes is on a distinguished road

      0  

    Default save a extjs form in data base with php.

    save a extjs form in data base with php.


    Hi,
    I have the same problem (like italoc) with my form. I read the previous posts and i tried the different solutions. But no satisfaction for me.
    Exemple: when the file indicated in url existe, nothing is done
    Code:
     url:'traitement.php',
    But when it doesn't exist, i receive this alet message:
    Code:
    failure: function(form, action) {
    	alert(action.failureType);
    }
    What i want is:
    When you clic on 'Valider', informations in 'subject', 'to' and 'msg' should go in a table whitch is in a MySql data base. I want to use the method 'POST'.
    Someone can give me a correct exemple?

    My form code (.js file) is:
    [CODE]

    Ext.onReady(function() {
    var form = new Ext.form.FormPanel({
    baseCls: 'x-plain',
    labelWidth: 55,
    url:'save-form.php',
    defaultType: 'textfield',
    id:'formule',

    items: [{
    fieldLabel: 'Envoyer
    -----------------------------------
    On ne finit jamais d'aprendre!

Thread Participants: 2