By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

multiple search fields

P: 1
I'm a newbie in this and need help.

I mange to make a one field search form.

But now I want to go further.
How can I make a multiple field form?

Expand|Select|Wrap|Line Numbers
  1. <h2>Search</h2>  
  2. <form name="search" method="post" action="<?=$PHP_SELF?>"> 
  3. Seach for: <input type="text" name="find" /> in  <Select NAME="field"> 
  4. <Option VALUE="fname">First Name</option> 
  5. <Option VALUE="lname">Last Name</option> 
  6. <Option VALUE="info">Profile</option> 
  7. </Select> <input type="hidden" name="searching" value="yes" /> 
  8. <input type="submit" name="search" value="Search" /> </form>

This is my one field form, which gives me the information about one situation

Now, I want to combine for example, the first option value “fname” from the <Select NAME=”field”> with another option value “fcountry” from the <select COUNTRY=”field” >and another option value “fcity” from the <select CITY=”field”> and another option value “fcity” from the <select IMAGE=”field”>

I hope I made myself clear.

May 11 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,584
I don't see a PHP related question, you can just insert more html form fields between the <form>and </form> tags.

That's it,

May 11 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.