PDA

View Full Version : only numeric values is recording



danaci
19 Apr 2010, 10:46 PM
hi,
Ext.onReady(function() {
var form1= new Ext.FormPanel(
{
url:'kayit.php',
title:'deneme',
frame:true,
renderTo: document.body,
items:[
new Ext.form.TextField({
fieldLabel: 'ad'
}),
new Ext.form.TextField({
fieldLabel: 'soyad'
}),

],
buttons: [{
text: 'Save',
handler: function(){
form1.getForm().submit({
success: function(f,a){
Ext.Msg.alert('Success', 'It worked');
},
failure: function(f,a){
Ext.Msg.alert('Warning', a.result.errormsg);
}
});
}
}, {
text: 'Reset',
handler: function(){
form1.getForm().reset();
}
}]
});
});

kayit.php
<?php

$baglan=mysql_connect("localhost","root") or die("connect olamad─▒m");
$dbsec=mysql_select_db("deneme",$baglan) or die ("db se├žemedim");
$ad=$_POST["ad"];
$soyad=$_POST["soyad"];
$sorgu=mysql_query("insert into aa values($ad,$soyad)");
?>

my table is ad
varchar(30)
soyad varchar(30)

extjs only numeric values is posting to kayit.php but not character values.

thnx for help