Author Topic: $form->select help  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline sasoriTopic starter

  • Enthusiast
    • View Profile
$form->select help
« on: October 23, 2008, 10:48:36 PM »
help, how am I gonna insert or make the "To Recipient" form into a dropdown menu of the contacts usersname in the database?

Offline awpti

  • Enthusiast
  • Gender: Male
    • View Profile
    • GeekLAN Networks Blog
Re: $form->select help
« Reply #1 on: October 23, 2008, 10:51:54 PM »
Could you be a bit more vague, please?

What framework?

Tried a loop?
Server: Apache 2.2.11 - PHP 5.2.9, 6.0.0-dev - MySQL 5.0, 5.1 and 6.0 - Core2Duo 2.66Ghz, 4GB Mem
GeekLAN - Ignited Jobs - LAMP Tips

10+ Years of hobby PHP Development and Database Design.

Offline sasoriTopic starter

  • Enthusiast
    • View Profile
Re: $form->select help
« Reply #2 on: October 23, 2008, 10:58:11 PM »
its a cake framework sir

here's the "i think" code of the recipient text box

Code: [Select]
   
    // autocomplete
    $formMailCompose .= $html->div('input text floatLeft',
        '<label for="Accounts/name">To</label>' .
            $ajax->autoComplete('_Account_', 'autocomplete', array(
            'afterUpdateElement' => 'updateHidden',
            'style' => 'width: 410px; margin-left: 30px;'
        )
    ));
   
    // target_id
    $formMailCompose .= $form->hidden('target_account_id', array(
        'id' => 'target_account_id'
    ));

so how am i gonna insert or  make the dropdown menu  to make it appear like
 
To Username: "dropdown here"

instead of

To Username: "input box here"

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.