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
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 :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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