ExtJS与PHP、MySQL实现存储的方法

2019-04-09 22:33:49王旭

},{
x:0,
y:152,
xtype:'label',
text:'性别:'
},{
x:140,
y:150,
xtype:'radio',
name:'sex',
fieldLabel:'性别',
boxLabel:'女',
inputValue:'g' //radio的取值为:g
},{
x:0,
y:180,
xtype:'label',
text:'用户住址'
},{
x:80,
y:180,
name:'address',
anchor:'100%'
}]
});
var window = new Ext.Window({
title: '注册帐户',
width: 400,
height:300,
minWidth:400,
minHeight: 300,
layout: 'fit',
plain:true,
bodyStyle:'padding:5px;',
buttonAlign:'center',
items: form,
buttons: [{
text: '注册',
handler:registerhandler
},{
text: '取消'
}]
});
window.show();
});

4 运行http://localhost/register/register.php

 

5 输入相关信息,点击‘注册'


6 Post方面


7 数据库方面

 
8 总结

Ext.Window
buttons的handler
radio的取值inputValue

Ext.Ajax.request({
url:
success:
method:
failure:
params:

});

Ext.getCmp().getForm().getValues();
平台:ExtJS+PHP Eclipse+Apache+MySQLadmin+firebug

相关文章 大家在看