admin管理员组文章数量:1123602
I am using a webservice to send SMS. They need to approve the messages templates which I can replace the {{X}} whit dynamic parameters later. I have defined a template with 3 lines like this:
Your OTP is {{x}}
Thanks
example
When I try sending such message by submitting a form and write this message in the textarea it is working fine. But when I try preparing the message by codes it is not working. How should I simulate the body received from textarea by coding?
working model:
HTML:
<form action="?" method="post">
<textarea name="body"></textarea>
<input type="submit" value="submit">
</form>
Working asp Code :
message=request("body")
call sendMessage(message)
Failed code:
message="Your OTP is 123" & vbcrlf & "Thanks" & vbcrlf & "example"
call sendMessage(message)
This also failed:
message="Your OTP is 123" & chr(10) & "Thanks" & chr(10) & "example"
call sendMessage(message)
I also tried Chr(13) & Chr(10) together.
Response: {"Id":null,"Status":false,"Message":"IsNotMatchedMessageContentAndPatterns"}
本文标签: asp classicEquivalent for textarea new lines in vbscriptStack Overflow
版权声明:本文标题:asp classic - Equivalent for textarea new lines in vbscript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736580138a1944938.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论