Jump to content

Displaying a list of options from database as the user fills in textbox


sheikhmdirfan

Recommended Posts

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..

Ok, if i got that right you want to do something like in google's first search page... In order to do that you need to use AJAX in combination with PHP.

 

That is not so hard.

Do you have any available code to see and help you on that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.