hey guys. This one is really bugging me. I have a form which contains some variables. One of the form variable("Description" is a textarea where someone can input text into. Now within my vbscript section, I declare a variable (sHDescription) to hold the "description" value. Since description contains spaces in it, the first space the string encounters and everything before the space is added to the vbscript variable and everything else after the space is not. Is there anyway of obtaining the entire string including spaces and storing it in sHDescription?
Here is a sample of my code:
<form name=hiddenform>
<INPUT type=hidden name=Description_hidden value=<%=Request.form("Description"&sID)%>>
</form>
<script language="vbscript">
sHDescription = document.hiddenform.Description_hidden.value
msgbox sHDescription
</script>
The description_hidden above grabs its info from a previous form and the vbscript section grabs this information. However since description_hidden value is a string that contains spaces, sHDescription will truncate its value. For example:
description_hidden value => "This is a test"
sHDescription value => "This"
Any help would be greatly appreciated.
Here is a sample of my code:
<form name=hiddenform>
<INPUT type=hidden name=Description_hidden value=<%=Request.form("Description"&sID)%>>
</form>
<script language="vbscript">
sHDescription = document.hiddenform.Description_hidden.value
msgbox sHDescription
</script>
The description_hidden above grabs its info from a previous form and the vbscript section grabs this information. However since description_hidden value is a string that contains spaces, sHDescription will truncate its value. For example:
description_hidden value => "This is a test"
sHDescription value => "This"
Any help would be greatly appreciated.