CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Multiple Search tools one one page?

Print topic Send  topic

Author Message
dhempy


Posts: 40
Posted: 06/18/2004, 3:29 PM

I've got a program database that has a series table and a related episode table. I'm trying to write a search page that has two distinct forms on it, one for each table. The two forms need to go to two different pages: series_list.pl and episode_list.pl. Each returns rows based on the search terms. The key to this inquiry is that each form has a separate action parameter.

I've used the Search Builder to create the two forms in the Header page. This header is included at the top of both series_list.pl and episode_list.pl . This is where the problem comes in...

On the series_list page, both forms work fine.
Search for "basketball" in the "Search Series" form, and you go to the search_series page.
Search for "basketball" in "Search Episode" and you go to the search_episode page.

You can see this here:
http://edit-www.ket.org/cgi-ket/sample_tvsched/series_list.pl

However, once you get over to the search_episode page, the action for the "Search Series" form now points to the episode_list page. Both forms now point back to the episode_list page.

You can see this by first searching for an episode from the series page, or by going directly to this page:

http://edit-www.ket.org/cgi-ket/sample_tvsched/episode_list.pl


So...am I just missing something? I've scrapped and built this page anew three times now. The last two times I didn't tweak anything at all after using the builder, but still this odd behaviour. I suspect I could edit the html/code to hard-code the action parameter, but that seems like trouble in a auto-generating environment.

Or am I simply taking the wrong approach to this problem? I know I want to display the two different types of records based on what the user is searching for, so it seems like this is the right way to go.


Anyone?

-dave

_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
View profile  Send private message
dhempy


Posts: 40
Posted: 06/18/2004, 3:36 PM

Quote dhempy:
On the series_list page, both forms work fine.
Search for "basketball" in the "Search Series" form, and you go to the search_series page.
Search for "basketball" in "Search Episode" and you go to the search_episode page.

Oops... that should read:
Search for "basketball" in the "Search Series" form, and you go to the series_list page.
Search for "basketball" in the "Search Episode" form, and you go to the episode_list page.

There are only two pages in the project...series_list and episode_list.

Thanks,
-dave
_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
View profile  Send private message
Don Safar
Posted: 06/19/2004, 8:32 AM

Tried to view you page below, but requires a login.
dhempy


Posts: 40
Posted: 06/21/2004, 1:04 PM

Quote Don Safar:
Tried to view you page below, but requires a login.

My mistake...try this: http://edit-www.ket.org/cgi-bin/sample_tvsched/series_list.pl

If you view source on the episode_list page, you'll see the action="episode_list.pl" on both forms. However, the screen shots below show that the two search tools specifically have a "return page" of series_list.ccp and episode_list.ccp, respectively. Any ideas?


Thanks for looking...I'm eager for answers.

-dave


_________________
David Hempy
Director of Broadcast and Education Technology
Kentucky Educational Television
800-333-9764
View profile  Send private message
Don Safar
Posted: 06/22/2004, 8:53 AM

Why don't you try something like this. Use one search form. Put a drop-down
list on that form to select either series or episode. In the before show
event for the page hide the form that wasn't selected (episode_list or
series_list).

"dhempy" <dhempy@forum.codecharge> wrote in message
news:240d36cd25f84d@news.codecharge.com...
> I've got a program database that has a series table and a related episode
table.
> I'm trying to write a search page that has two distinct forms on it, one
for
> each table. The two forms need to go to two different pages:
series_list.pl
> and episode_list.pl. Each returns rows based on the search terms. The
key to
> this inquiry is that each form has a separate action parameter.
>
> I've used the Search Builder to create the two forms in the Header page.
This
> header is included at the top of both series_list.pl and episode_list.pl .
> This is where the problem comes in...
>
> On the series_list page, both forms work fine.
> Search for "basketball" in the "Search Series" form, and you go to the
> search_series page.
> Search for "basketball" in "Search Episode" and you go to the
search_episode
> page.
>
> You can see this here:
> http://edit-www.ket.org/cgi-ket/sample_tvsched/series_list.pl
>
> However, once you get over to the search_episode page, the action for the
> "Search Series" form now points to the episode_list page. Both forms now
point
> back to the episode_list page.
>
> You can see this by first searching for an episode from the series page,
or by
> going directly to this page:
>
> http://edit-www.ket.org/cgi-ket/sample_tvsched/episode_list.pl
>
>
> So...am I just missing something? I've scrapped and built this page anew
three
> times now. The last two times I didn't tweak anything at all after using
the
> builder, but still this odd behaviour. I suspect I could edit the
html/code to
> hard-code the action parameter, but that seems like trouble in a
> auto-generating environment.
>
> Or am I simply taking the wrong approach to this problem? I know I want
to
> display the two different types of records based on what the user is
searching
> for, so it seems like this is the right way to go.
>
>
> Anyone?
>
> -dave
>
> _________________
> David Hempy
> Internet DBA
> Kentucky Educational Television
> 800-333-9764
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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