Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > String getting chopped off

Reply
Thread Tools

String getting chopped off

 
 
Bill
Guest
Posts: n/a
 
      08-20-2003
I am passing a string of text between a page and a database. It is a
book title, which consists of 2 or three words, and only the first
word is passing to the database. The page that passes the string has
the whole string on it, but somewhere between the passing and the
receiving, the string is getting chopped off at the first word.

Here is the text that's passing the string:
response.write "<input type=hidden name=title" & " value=" &
rs("title") & ">"

and here is the code that is receiving it:
title=request.form("title")

I've tried adding various ' here and there, but it only causes the
pages to crash. Can someone please show me where I'm going wrong? I
know it has something to do with having quotes or ' somewhere, but I
can't quite understand where.

Thank you!

Bill
 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      08-20-2003
.....value='" & rs(..) & "'....

Put single quotes around the Value=''


--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------


"Bill" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> I am passing a string of text between a page and a database. It is a
> book title, which consists of 2 or three words, and only the first
> word is passing to the database. The page that passes the string has
> the whole string on it, but somewhere between the passing and the
> receiving, the string is getting chopped off at the first word.
>
> Here is the text that's passing the string:
> response.write "<input type=hidden name=title" & " value=" &
> rs("title") & ">"
>
> and here is the code that is receiving it:
> title=request.form("title")
>
> I've tried adding various ' here and there, but it only causes the
> pages to crash. Can someone please show me where I'm going wrong? I
> know it has something to do with having quotes or ' somewhere, but I
> can't quite understand where.
>
> Thank you!
>
> Bill



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chopped sound when listening via Bluetooth! Michael Moser Wireless Networking 0 01-22-2010 10:10 PM
Bit chopped off printing web pages SS Computer Support 13 11-20-2006 05:21 PM
last line chopped from input file Eric Lavigne Python 6 08-21-2005 08:09 PM
Newbie string question: how to read off the first char from a string? DTO C++ 24 02-28-2005 09:08 PM
Olympus Images Chopped Off John Digital Photography 10 02-14-2004 06:40 PM



Advertisments