Jump to content

[SOLVED] Matching text in a drop down box


Voodoo Jai

Recommended Posts

I have a db table that I want to populate into a text field in a form, then as you type it matches to what is stored on the db ready to be accepted as input for the form. I only want one line to appear then as you type the appropriate value comes up. How do I do this.

 

eg

typing  W

appears W

 

typing  WF

appears WF

 

typing  WF4

appears WF4

 

you get the picture

 

Thanks in advance

 

VoodooJai

Link to comment
https://forums.phpfreaks.com/topic/118592-solved-matching-text-in-a-drop-down-box/
Share on other sites

normal html, as well as php wont help u with this !

If u want instant updating on db tables within a form u will need AJAX.

 

But i dont know if this forum has a specific AJAX subsection,

if not just look for other forums.

 

What u can do in html combined with php is the following :

- add a button after the textfield

- when u press button, let php find all possible items, trough MySQL searching

 

Hope this helped a bit :)

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.