|
| |
|
|
Aaron Edwards
Posts: 2 Joined: 8/15/2003 Status: offline
|
HTML in a Textarea Tag - 9/10/2003 11:37:08
I'm trying to pass HTML to an ASP script via a TEXTAREA tag but for some reason, once the form gets submitted, everything between a < and a > gets swallowed. This seems like an HTML problem, because I print out the variable as soon as it gets into ASP land and it's already truncated. Here's the code if you want to check it out ... Default.asp: <% If Request("action") = "process" then ProcessForm Else DisplayForm End If Response.End Sub DisplayForm %> <form name="someform" Action="Default.asp?action=process" method="post"> <textarea cols="40" rows=22 name="txtBody">Put some sample HTML code in here. </textarea> <input type="submit" value="Send!"> </form> <% End Sub Sub ProcessForm Dim txtBody txtBody=Request.Form("txtBody") Response.write txtBody End Sub %>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|