![]() |
#1
|
|||
|
|||
![]()
How do you get the name and the id of the creature to show in a drop down list? I can get one or the other to show, but not both. I used to know this but now I seemed to have forgot- It would be nice to know how to do it again, and even how to get it to show images would be awesome!
|
#2
|
||||
|
||||
![]()
Image I don't know if it's possible, but to add the code next to the name I don't really remember how I did it, but I believe I just went to the dropdown list creation and instead of sending just the name i send the code concatenated with the name, like:
$nameFinal = $name .= '( ' .= $code .= ')' or something alike edit: I have this for females in the breeding thing PHP Code:
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 11-11-2013 at 07:51 PM. |
#3
|
|||
|
|||
![]()
I can't seem to get it to work, I get this :
Adopt/Price:Cannot fill option objects inside this dropdownlist As an error, code: PHP Code:
|
#4
|
||||
|
||||
![]()
I see, because you are using the fill function. In mine I add the options one by one to the dropdown list (called 'female'), so the left side is the field name and the right side the value. Try it like that?
__________________
![]() ![]() ![]() asp.net stole my soul. |
#5
|
|||
|
|||
![]()
I changed it to fill, but now it only shows one of the adoptables.
Updated code: PHP Code:
|
#6
|
||||
|
||||
![]()
Oh, the add goes inside the the foreach cycle
__________________
![]() ![]() ![]() asp.net stole my soul. |
#7
|
|||
|
|||
![]()
Works now, awesome!
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Long Time No See | DarthPhoenix | Newcomer Center | 1 | 11-08-2014 05:52 PM |
Last time I hope | RoconzaArt | Questions and Supports | 4 | 01-17-2011 09:30 AM |
over time to train | focap17 | Questions and Supports | 0 | 06-23-2010 11:23 AM |
Random 5 is not realy random! | RipJawWolfFang | Questions and Supports | 9 | 04-30-2009 06:03 AM |
when you have time i need a little help. | agnyz | Questions and Supports | 7 | 01-17-2009 03:12 PM |
What's New? |
What's Hot? |
What's Popular? |