Hi,
As explained in the previous thread, I am create a webpage that displays server info from a database. What servers the user selects will be added to a new table created in the sql database. However, when more than one server is selected, these servernames are inserted into the table as a string.
For ex:
server1 and server 2 are selected.
In the table the two servers are displayed like this
server1/, server2/
In order to solve this problem I attemped split the names.
While Not oRs.EOF
serverString = oRs("serverName")
MyArray = Split(serverString, "/,")
'tempID = Trim(oRs("serverName"))
Response.write "<br /><font size='2'>Server: <b>" & oRs("serverName") & "</b> Server Location: <b>" & oRs("serverLocation") & "</b>"
Response.write "<br /><i>Select This Server:</i> <input type='checkbox' name='server' id='serverSelect' value=" & tempID & "/></font><br />"
oRs.MoveNext
Wend
However, this does not work. The only thing that is shown now in the SQL database is: /,
Thx
As explained in the previous thread, I am create a webpage that displays server info from a database. What servers the user selects will be added to a new table created in the sql database. However, when more than one server is selected, these servernames are inserted into the table as a string.
For ex:
server1 and server 2 are selected.
In the table the two servers are displayed like this
server1/, server2/
In order to solve this problem I attemped split the names.
While Not oRs.EOF
serverString = oRs("serverName")
MyArray = Split(serverString, "/,")
'tempID = Trim(oRs("serverName"))
Response.write "<br /><font size='2'>Server: <b>" & oRs("serverName") & "</b> Server Location: <b>" & oRs("serverLocation") & "</b>"
Response.write "<br /><i>Select This Server:</i> <input type='checkbox' name='server' id='serverSelect' value=" & tempID & "/></font><br />"
oRs.MoveNext
Wend
However, this does not work. The only thing that is shown now in the SQL database is: /,
Thx