Multilpe Selection in forms

Results 1 to 2 of 2

Thread: Multilpe Selection in forms

  1. #1
    Toby Mills Guest

    Default Multilpe Selection in forms

    html allows the user to select multiple values from a dropdown box by holding down the &#039ctrl&#039 or &#039shift&#039 keys, but how do use the resultting output as ASP refuses to put into an array, the form outputs the values seperated by a comma.<BR><BR>toby<BR>

  2. #2
    KPW Guest

    Default RE: Multilpe Selection in forms

    You can use the Split function to get the comma-separated data into an array.<BR><BR>&#060;%<BR>&#039 cboMultiSelect contains more than 1 value<BR>sSelections = Request.Form("cboMultiSelect")<BR>aSelections = Split(sSelections, ",")<BR>&#039 aSelections is now an array containing the selections from cboMultiSelect<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts