How to saperate values

Results 1 to 3 of 3

Thread: How to saperate values

  1. #1
    Join Date
    Dec 1969

    Default How to saperate values

    Hello!<BR> &#060;select name=carat&#062;<BR> &#060;option value=1.05,6.54&#062;first Value&#060;/option&#062;<BR> &#060;option value=6.55,7.55&#062;Second Value&#060;/option&#062;<BR> &#060;/select&#062;<BR><BR>I made a page passing values like 1.05,6.54 <BR>from a Drop Down box to next page.<BR>Now in Second Page I want to Saperate the <BR>two Values (1.05 and 6.54) and to store them<BR>in different varaiables...<BR><BR>Any Idea or help will be appriciated<BR><BR>Zeeshan Dar

  2. #2
    Join Date
    Dec 1969

    Default SPLIT

    In the left panel of this page, click on the link to "VBScript Reference".<BR><BR>In the list of topics that appears, click on "Functions".<BR><BR>In the list of functions that appears, click on "Split".<BR><BR>Read.<BR><BR>Does that help, or do you need more explicit code?<BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: How to saperate values

    If they can only select 1 value from the dropdown then use<BR>split()<BR><BR>myvalues = Split(Request("carat"),",")<BR><BR>response.write myvalues(0) & &#060;br/&#062;<BR>response.write myvalues(1)

Posting Permissions

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