If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Splitting strings prob

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-04, 06:59
slidj slidj is offline
Registered User
 
Join Date: Mar 2004
Posts: 11
Splitting strings prob

i have this code below, but getting an error for an object required for the repsonse.write line. i think this is because the inital state of the text box is empty. ive tried putting an if statement so that it only performs the spilt if the string is bigger than 1 but this has not solved the problem. any ideas? cheers in advance

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>intelliGuide</title>
</head>

<body>

<form name="form" method="post" action="test.asp">

<input type="text" name="question" style="position:absolute; z-index:1; left: 160; top: 200" maxlength="50">
<input type="Submit" name="Search" value="Search" style="position:absolute; z-index:1; left: 160; top: 250">

</form>

<%

Dim strquestion

strquestion = request.form("question")

if len(strquestion) > 0 then

MyArray = Split(strquestion)
strclub = MyArray(2)
repsonse.write(strclub)

end if
%>

</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 03-16-04, 15:59
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
assuming this is a direct copy of you code,...

response.write is spelt wrong....

The other problem could be that your string does not have the split character within it.....

HTH
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On