Problem with Form Varibles

Results 1 to 2 of 2

Thread: Problem with Form Varibles

  1. #1
    Join Date
    Dec 1969

    Default Problem with Form Varibles

    Lets say i have this form field. <BR>&#060;SELECT NAME=&#039;CPU&#039; size="1"&#062;&#060;OPTION VALUE=&#039;PIII550 45&#039; PIII 550Mhz ($45/month) <BR> &#060;OPTION VALUE=&#039;DPIII550 90&#039; &#062;Dual PIII 550Mhz ($90/month)&#060;/SELECT&#062; <BR><BR>When the form is submitted, the value if Dual PIII 550 was picked would be &#039;DPIII550 90&#039; the first word &#039;DPIII550&#039; would be used for backend server scripts, and the second word &#039;90&#039; would be used for calucation of the final price. how could i split those two words into a array like &#039;server(1,1)&#039; and the second word would be &#039;server(1,2)&#039; <BR><BR>If you need more info, just let me know. <BR><BR>Thanks, <BR>Oliver

  2. #2
    J. Paul Schmidt Guest

    Default Let's Split

    Here is something you might find of interest:<BR><BR>Parsing with join and split - 5/9/1999<BR><BR>"Whenever I need access to any record in this delimited text file, I first use the FileSystemObject to read in the entire text file into one string. I then issue a recArray = split(str,"*"), to get an array with each element a single record. Finally, to get each element in the record, I issue another split, elementArray = split(recArray(i),chr(13)), which stores each element of the ith record in elementArray."<BR><BR>Best regards,<BR>-Paul<BR><BR>J. Paul Schmidt, MBA<BR>Databases on the Web<BR>

Posting Permissions

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