When submitting a form using vbscript, I loose the CR/LFs.
If I use a submit button instead of vbscript, the CR/LFs are passed.
Using vbscript:
In the code
The above process causes the loss of CR/LFs in my code. However, if I use the standard Submit button to submit the form, the CR/LFs get saved.
What am I doing wrong?
Thanks,
John
If I use a submit button instead of vbscript, the CR/LFs are passed.
Using vbscript:
Code:
Sub btnOK_onclick
Dim Comments
Comments = document.forms(0).txtComments.value
window.navigate(nextpage.cfm?Comments=" & Comments)
Code:
<FORM name=frmStuff>
<textarea cols="80" rows="4" name="txtComments" id="txtComments" wrap="soft">
<INPUT id=btnOK name=btnOK type=button value=OK>
</form>
What am I doing wrong?
Thanks,
John