Please support our HTML and CSS advertiser: Lunarpages Web Hosting
![]() |
hi there..
can i retrieve the break tag from querystring? i have a textarea which i store in a querystring. the textarea will not show the break tag if i have break tag among the text i typed.
let me explain in greater details. i have a dropdownlist whereby onclick it will store the values from other html inputs' values (textarea, dropdownlist) into the querystring, and the html inputs' values should remain. the problem is that if i have a chunk of words in a textarea where there are paragraph breaks and when the dropdownlist onclick triggers, there are no paragraph breaks, the words are all joined together.
here are my codes:
can i retrieve the break tag from querystring? i have a textarea which i store in a querystring. the textarea will not show the break tag if i have break tag among the text i typed.
let me explain in greater details. i have a dropdownlist whereby onclick it will store the values from other html inputs' values (textarea, dropdownlist) into the querystring, and the html inputs' values should remain. the problem is that if i have a chunk of words in a textarea where there are paragraph breaks and when the dropdownlist onclick triggers, there are no paragraph breaks, the words are all joined together.
here are my codes:
<textarea name="txt" id="txt" rows="5" cols="100" class="text" mandatory='true' display='txt' pattern='ALPHA_NUMERIC_PLUS'><%=request.QueryString("txt")%></textarea>
function check(){
document.form.action = "page.asp?txt="+document.form.txt.value;
document.form.submit();
} cheers,
ohgosh
ohgosh
•
•
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation:
Rep Power: 4
Solved Threads: 6
Agreed with tgreer. Better to use post in your form and retrive the data from texarea using request.form("txt"). Here is what I would normally do:
You may use \n instead of Chr(13)
.
mytxt = request.form("txt")
' use one of the following depend how you want to display your data
mytxt = replace(mytxt, "<br>", Chr(13)) ' convert html tag into new line
mytxt = replace(mytxt, Chr(13), "<br>") ' convert new line/break into html tag.
Ecommerce-Web-Store.com Building Your e-Business.
![]() |
Similar Threads
Other Threads in the HTML and CSS Forum
- dynamic dropdowm list and mysql (PHP)
- painting (ASP.NET)
- password protecting (HTML and CSS)
- retrieving a web page from database (ASP)
- how to validate checkbox with different names? (HTML and CSS)
- Please Help!!! MOD function (ASP)
- Help with Querystring error (PHP)
Other Threads in the HTML and CSS Forum
- Previous Thread: getting an image to ignore my CSS or easy fix.
- Next Thread: How to view source code of a nav bar?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode