scottybwoy Posted August 22, 2006 Share Posted August 22, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/18284-selection-box/ Share on other sites More sharing options...
willpower Posted August 22, 2006 Share Posted August 22, 2006 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 itSearch google for ajax applications and tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/18284-selection-box/#findComment-78519 Share on other sites More sharing options...
scottybwoy Posted August 22, 2006 Author Share Posted August 22, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/18284-selection-box/#findComment-78553 Share on other sites More sharing options...
ober Posted August 22, 2006 Share Posted August 22, 2006 www.ajaxfreaks.comThat 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. Quote Link to comment https://forums.phpfreaks.com/topic/18284-selection-box/#findComment-78560 Share on other sites More sharing options...
scottybwoy Posted August 22, 2006 Author Share Posted August 22, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/18284-selection-box/#findComment-78577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.