Click to See Complete Forum and Search --> : multiple form parsing?


zeusdidit
07-01-2004, 06:38 PM
I have multiple html pages that contain a single form with a textfield that points to a specific Perl file (there are 7 perl files, each of which has it's own search criteria).

I need to have one html page with multiple textfields that will return the same search results as the 7 pages of HTML and Perl I currently have.

The issue I'm having is deliberating whether to parse the information in PERL or just check in Javascript which form item was filled in and then send the user to the correct Perl page.

I guess the bigger problem with the Javascript is what do I do if more than one form item gets filled...

Any help would be greatly appreciated.

Zeus
zeusdidit (http://www.zeusdidit.com)

Nedals
07-02-2004, 03:36 AM
Originally posted by zeusdidit
The issue I'm having is deliberating whether to parse the information in PERL or just check in Javascript which form item was filled in and then send the user to the correct Perl page.
Given the option... parse the information in PERL
I guess the bigger problem ..... is what do I do if more than one form item gets filled...
Name the text fields so they can be sorted in a predefined order and respond to only the appropiate one
OR
use 7 named submit buttons

zeusdidit
07-02-2004, 09:59 AM
Preferably I would like just one Submit button, like below


input type="text" size="25" maxlength="50" name="owner" title="Enter an Owner Name, last name first. Use *name to search for all like terms. ">

<input type="text" size="25" maxlength="50" name="strname">
<input type="text" size="25" maxlength="50" name="strname2">
<input name="submit2" type="submit" class="butClass" value="Go Search">


I'll just do it in Perl. Thanks.