View Full Version : how to post parameters form Extjs to a php page?

16 Sep 2013, 10:15 AM
I need to display a php page according to the user selected values so the extjs code should pass the value to the php but I don't know how to post and get the parameters:
this.panel = Ext.create('Ext.panel.Panel', {
items: [{
xtype: 'component',

// autoScroll:false,
autoEl: {
tag: 'iframe',
style: 'height: 10%; width: 100%; border: false',
src: 'combo.php?org_name={org_name}&org_id={org_id}',




$result1 = mysql_query("select year as period from year_data where org_id=$org_id") or die(mysql_error());

while ($row = mysql_fetch_assoc($result1)) {

$period = $row['period'];

echo "<option value=$period>$period</option>";

1 Oct 2013, 3:26 PM
So, the iframe's src's {org_name} and {org_id} are what you're wanting to supply dynamically is that correct?