Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response.write

Status
Not open for further replies.

testare

Programmer
Jan 21, 2005
127
I only have this code.
How can i get the value that i typed in the textarea to be printed with Response.Write Request.Form("text")

<%Response.Write Request.Form("text") %>
<textarea name="text"></textarea>
<a href="nerd.asp">link</a>
 
Here is my whole code?


At line 274 i use a button that i want to send my whole code with the text of the textarea.

At line 200 i want to insert the text that i have in the textarea into the database, but there is no text to insert.

Thats my big problem and then i'm done with this project.
 
ok here is what you need to do:

change your line:
sSQL = "INSERT INTO CALINFO VALUES (" & Request.Form("text") & ", '" & sDay & "')"

to

sSQL = "INSERT INTO CALINFO VALUES (" & Request.Form("[red]texta[/red]") & ", '" & sDay & "')"

-DNG
 
Oh, and be careful that your text itself doesn't have any single quotes... might want to Replace() them.
 
I'm sorry for my stupidity, that I pointed out the wrong lines.
I meant line 284 and 207.

Thanks, i will directly try this out and get back to you if it works.
 
It didn't work still get nothing when i at line 209 Response.write the sqlstring
 
i believe the problem is you are not submitting the form because you have a onclick event on the post button, remove that and change the button to a submit type
 
Okey, i can't do as I want with OnClick?

FesterSXS; I've changed it as you said but it doesn't help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top