Jump to content

Archived

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

scottybwoy

Selection Box

Recommended Posts

Is it possible to have a selection box with values from a table.  But when the form starts it has an empty value, then the user can type into it and as it does it finds the record that matches the user input?

If so what method must I use?

Share this post


Link to post
Share on other sites
This can be done...but with javascript and in this case AJAX where you create a 'behind the scenes' link with the database using the DOM object.

But I am afraid...I cant do it

Search google for ajax applications and tutorials. 

Share this post


Link to post
Share on other sites
Cheers for the pointer.  I have heard of AJAX but didn't reaslise how it was needed.  Now I have to learn some JavaScript and XLM too, damn, was just learnin php first, but it'll all be good under the belt.

Share this post


Link to post
Share on other sites
www.ajaxfreaks.com

That is a sister-site to phpfreaks.com and should help you out quite a bit.  For what we're talking about here, you won't need any XML unless you're storing the data in XML files instead of a database.

Share this post


Link to post
Share on other sites
Thanks ober, I will be using a database.

While were here on the subject tho, will I have to use this If for instance the customer name entered does not exist can it still put the details into the form but not enter it into the database so that the other fields can be filled in manually by the user, before using a submit to Insert it into the database?

Share this post


Link to post
Share on other sites

×

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.