PDA

View Full Version : how to get field (textfield..) values in php file



ibcravi
5 Aug 2009, 10:27 AM
Hi Experts

I am new to extjs
i m trying to use dynamic.js form
how can i get the values from the form to php page if i want to insert form data into databas. in the same manner i want to edit the data once it is inserted

i m trying to use the following code
------------------------------------------------------------
var simple = new Ext.FormPanel({
labelWidth: 75, // label settings here cascade unless overridden
url:'save-form.php' (https://extjs.com/forum/'save-form.php'),
frame:true,
title: 'Simple Form',
bodyStyle:'padding:5px 5px 0',
width: 350,
defaults: {width: 230},
defaultType: 'textfield',
items: [{
fieldLabel: 'First Name',
id:'first',
name: 'first',
allowBlank:false
},{
fieldLabel: 'Last Name',
name: 'last'
},{
fieldLabel: 'Company',
name: 'company'
}, {
fieldLabel: 'Email',
name: 'email',
vtype:'email'
}
],
buttons: [{
text: 'Save',
handler: function(){
var v=Ext.getCmp('first').getName();
msg( v);
}

------------------------------------

Please help me

Thanks in advance
Ravi

Animal
5 Aug 2009, 10:31 AM
Start here and follow and read all links: http://extjs.com/deploy/dev/docs/?class=Ext.form.FormPanel&member=getForm