Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Filtered dropdown of all of a user's adopts?
I know there's a way to do it, since it's done for the Favpet selection and for breeding, but I need to know how. I also need to know how the dropdown can know the adoptable id, since I'm going to be using it for other things.
|
#2
|
||||
|
||||
To filter which pets show up in the dropdown, you use this for the conditions:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
You can get the result of the form when submitted and use the id from there, no need to add anything to the database and call it back if it isn't necessary for what you're trying to accomplish:
PHP Code:
Now you can use '$somevariable' to get the id of the chosen pet and use it elsewhere in the script; like so: PHP Code:
__________________
|
|
|
What's New? |
What's Hot? |
What's Popular? |