Results 1 to 2 of 2

Thread: request.form

  1. #1
    ICY Guest

    Default request.form

    I have a text box to allow user to enter their country. if they enter "USA CANADA", can I only pass the left string to the response page and delete the rest? or when I detect a space then I can delete the rest?<BR>response page my code like: myCountry=request.form("country"), it come out "USA CANADA".<BR>Thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: request.form

    You could just use:<BR><BR>country = split(myCountry," ")<BR><BR>The result would be:<BR>country(0) = USA<BR>coutry(1) = CANADA<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