I'm attempting a login script where the available user names are automatically populated in a dropdown box from an sql database.
I have used
Set vrec = Server.CreateObject("ADODB.Recordset")
sql = "SELECT CBroker.BrokerOpName FROM CBroker"
vrec.Open sql, adoCon, adLockOptimistic
WHILE NOT vrec.EOF
Response.write "{option name=Vbrok value=" & vrec("BrokerOpName") & ">" & vrec("BrokerOpName") & "{/option>"
vrec.MoveNext
WEND
vrec.Close
in between my select and /select tags. The dropdown box displays fine, but if you attempt to post a username which contains a space, it will only post whatever is before the first space, and nothing after. I know that a dropdown box which is hard coded will submit spaced words properly. Does anyone know what i've done wrong?
Edited by ub3rl337ch3ch - 27 February 2005 at 10:03pm