Hii, developers, in my ajax auto complete program ,
// add.ctp
<div class="Users form">
<?php echo $form->create('User');?>
<fieldset>
<legend></legend>
<?php
echo $form->select('country_id',array($countries),null,array
('id'=>'countries'),false);
?><br /><br /><?
echo $form->select('region_id',array(),null,array
('id'=>'regions'),false);
?>
</fieldset>
<?php echo $ajax->observeField('countries',array
('url'=>'update_region_select','update'=>'regions'));?>
<?php echo $form->end('Submit');?>
</div>
<!--?php __('Add');?-->
and
//select.ctp
<?php
if (!empty($options)) {
foreach ($options as $k => $v) {
// echo "<option value='$k'>$v</option>";
}
}
?>
I want both values in text boxes. The input box should need textbox
with autosuggest from databsse and output should autocomplete
textbox . Please help me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---