Gossamer Forum
Home : General : Perl Programming :

Links or DBman

Quote Reply
Links or DBman
Hi,

I'm wondering if links or dbman can be modified to do this?

Ok, here's what I'm looking to do:

I'm going to have two dropdown menus. In each of these drop down menus will be a 10 different options. It is required that a user select an option in both.....after hitting submit they will be given a pre-determined output, depending on what options they selected. The output will only need to be one field of information and nothing else.

Do you think either of these programs could do something like this? If not, any recommendations of what I might be able to use?

Thank you for any replies.
Quote Reply
Re: Links or DBman In reply to
Either program will work...However, required fields in terms of searching is more flexible and configurable in DBMAN.

Code:
unless ($in{'Field'} and $in{'Field'}) {
$message .= "<li>You must select values in both drop-down menus.</li><BR>";
}

Then add the following codes:

Code:
if ($message) {
chomp($message);
&site_html_search_failure($message);
return;
}

IN LINKS.

and the following in DBMAN:

Code:
if ($message) {
chomp($message);
&html_search_failure($message);
return;
}

Quote:
The output will only need to be one field of information and nothing else.

This can be done in the sub html_record in DBMAN and create a separate template file called searchlink.html for LINKS, including only the field that you want to print.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Links or DBman In reply to
Right on......thank you Eliot! I know there's alot of flexibility, but I just wasn't quite sure where to start. Thanks again.
Quote Reply
Re: Links or DBman In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.