Yii Framework Forum: [Help] Populate Form After Chosing A Value From Db - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Help] Populate Form After Chosing A Value From Db Rate Topic: -----

#1 User is offline   obscuremind 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 14-December 12

Posted 24 January 2013 - 12:51 PM

I there, iam trying to populate a form when chosing a value from a dropdownlist.
For example:

I have a database called client with id name phone number and address, want to retrive those values to another table after chosing in the form from a dropdownlist the name of the client.

In the invoice i have the client_id field with relation to the client_id on the client table, i have made this funtion to retrive the values from the client db.

https://gist.github.com/4625620

What could i do to result in what i want?

I'am sorry if my explanation its a bit confused, english its not my native language.

Thanks in advance.
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 24 January 2013 - 02:03 PM

/* moved from Tips, Snippets forum */
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users