Does anyone know how to..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jauson
Forum Contributor
Posts: 111
Joined: Wed Oct 05, 2011 12:59 am

Does anyone know how to..

Post by jauson »

Does anyone know how to create a search form using dropdown and textfield. example

<Dropdown>
USA
JAPAN
PHILIPPINES

<textfield> example USA/
she/he type
manila w/c captal of Philippines

result is 0.

but when she type New York ->> Result is 1 coming from the database. cheers! thanks
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Does anyone know how to..

Post by social_experiment »

The form isn't the challenge, the search query needs to be amended properly. You don't state if you want to use AJAX or submit the form but i'd say you are looking for something 'instantaneous' so you should look at a AJAX solution which isn't to tricky (even for newbies) given the abundance of tutorials & books on the subject.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply