Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple select - write selections

Status
Not open for further replies.

esearing

IS-IT--Management
Aug 22, 2000
132
US
I need a script which will allow a user to select the month(s) of reports he wants to see. Our files are stored with the following naming convention:
filenameMMYYYY (where MM=2 digit Month, and YYYY =Year).
I want the user to be able to select non sequential months. The script needs to pass the file name to another piece of software.

Sample Web Page Form:
------------------------------------
Orders by Month
Please select the Months for which you want to see reporting of Orders....

[checkbox] Jan (01) (checkbox or Multiple Select will do)
[checkbox] Feb (02)
[checkbox] Mar (03)
...
[checkbox] Dec (12)

Select Year [2000][2001]etc...

-------------------------------------------

Suppose the user selects February and December 2000. I need to write ONLY the filenames for the months selected.
These values will be passed to a report query tool which will merge the two monthly reports into one.

 
Loop therough the mutliple select box and check for:

selectbox.options[whatever].selected

if it is, those are the ones you want so you take

selectbox.options[whatever].value

jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top