Displaying a list of options from database as the user fills

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Displaying a list of options from database as the user fills

Post by sheikhmdirfan »

Hi All,

Again i am back to u friends...

I have a text box on a webpage in which a user gives a plant name.
What i want is that as the user is typing the plant name a list of options should appear as he is typing and he should be able to select one of those. If he selects one of those then that value should appear in the textbox.

e.g say there are 3 plants whose names start with or contains the word "Boti" in the database. say Boti Mascas, Boti feral, Boti vestras.

As i type Boti or start with B the list should appear with the textbox below it and i should be able to select one among them.

If anyone of you could help in this regard then i will be very thankful.

Thanks in advance..
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Displaying a list of options from database as the user fills

Post by papa »

You should take a look at Ajax. You can do some really neat stuff with that.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Displaying a list of options from database as the user fills

Post by jackpf »

Indeed. There are some good tutorials on google.
Post Reply