CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 search form question

Print topic Send  topic

Author Message
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)

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.