CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Search Form: Mulitple Listboxes with Foreign Keys

Print topic Send  topic

Author Message
Anuruddha
Posted: 08/18/2005, 5:45 AM

Dear All;

I have a search page and search result page "search.php", "search_result.php" respectively.

in seach.php, there are 3 listboxes having foreign keys.

First listbox is the area_lb populated from area table.
Secnd listbox is the prefs_lb populated from pref table.
Third listbox is the cities_lb populated from cities table.

cities_lb list values depends on value selected from prefs_lb and prefs_lb depends on value selected from areas_lb.


All list boxes have onchange="this.form.submit()"

when search.php's return page is set to itself query(list values) works fine.

I want to accumilate the search qurery in this form(search.php) and finally want to submit
completed qurery to search_result.php through the "submit button".

In short, I want to check "only if the submit button is pressed" redirect to the search_result.php

Please show me best way to do this.

thanks in advance,

Anuruddha
Posted: 08/18/2005, 5:37 PM

I read the http://examples.codecharge.com/CCSExamplePack2/Dependen...dentListBox.php and I would rather prefere to know server side solution.

peterr


Posts: 5971
Posted: 08/19/2005, 4:01 AM

Here it is: http://support.yessoftware.com/kb_article.asp?article_id=61
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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.