wanaka
|
| Posted: 06/19/2002, 2:33 AM |
|
I intend to built a search form in my index page. People can search contact list, DNS record etc.. using the same form. Inside the form people can choose what kind of information they are looking for from the list box.
For example
keyword DNS/Contact/etc..
Depend on what is selected in the list box I will passed the search_keyword to that particular page which will return the result.
Depend on what criteria was select in the list box I will set the correct $sActionFileName.
If people is looking for contact information. I will pass the keyword field to search_contact.php page. If people is looking for DNS I will pass the keyword field to search_dns.page
|
|
|
 |
Nicole
|
| Posted: 06/21/2002, 12:04 AM |
|
Wanaka,
I advice you to use JavaScript function assigned to form onSubmit event. Catch value selected from listbox and depending on its value redirect user to different page using window.location code. Do not forget that you should build parameters string (the main problem is to collect all entered search values. Please refer to JS docs if necessary to find how to get values from textboxes and/or listboxes)
|
|
|
 |
|