[support] load combo value
bharani kumar
bharanikumariyerphp at gmail.com
Fri Mar 20 11:04:19 UTC 2009
function customblock_form(){
print $userQuery = "SELECT name,uid FROM users WHERE uid>0";
$queryAFFT = db_query($userQuery);
$site_users=array();
while($userNameId=db_fetch_object($queryAFFT)){
array_push($site_usersid,$userNameId->uid);
array_push($site_users,$userNameId->name);
}
$form['guest'] = array(
'#type' => 'select',
'#title' => t('Guests'),
'#options'=>array($site_usersid=>$site_users),
'#default_value' => '1',
'#description' => t('Select User'),
);
return $form;
}
This is my combo Code, am loading the username,
When i select user,then , that user posted story or pages need load into
another combo,
using ajax , This is my custom block,
Thanks
--
உங்கள் நண்பன்
பரணி குமார்
Regards
B.S.Bharanikumar
POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090320/8084e26a/attachment.htm>
More information about the support
mailing list