473,695 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

String getting chopped off

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.f orm("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
Jul 19 '05 #1
1 1877
.....value='" & rs(..) & "'....

Put single quotes around the Value=''
--
----------------------------------------------------------
Curt Christianson (Software_AT_Da rkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"Bill" <bi***********@ gospellight.com > wrote in message
news:8d******** *************** ***@posting.goo gle.com...
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.f orm("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

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1957
by: Bill | last post by:
I'm submitting a string of data, with several words in it. When I try to retreive it from the database, I'm finding the words of the string have been removed. For example, if the string entered is a person's title, such as Vice President of Finance, it is only showing VicePresident then nothing else is showing. What could be the problem? Thanks, Bill
4
1710
by: Paul Jackson | last post by:
I have the following situation: class Y; class Z; class X { public: Y y; Z* z; };
26
808
by: Kai Jaensch | last post by:
Hello, i am an newbie and i have to to solve this problem as fast as i can. But at this time i don´t have a lot of success. Can anybody help me (and understand my english :-))? I have a .txt-file in which the data is structured in that way: Project-Nr. ID name lastname 33 9 Lars Lundel 33 12 Emil Korla
4
1555
by: Ray Mitchell | last post by:
Hello, My understanding is that C++ string class objects still terminate their strings with a '\0', as do strings in C. If this is the case (please tell me if it isn't), it appears that the easiest way to treat a C++ string as a char * so it can be used with functions requiring a character pointer such as strcmp (I realize that one would not normally want to do this), etc. is to use the form: &stringObject (is there a better way?). ...
0
1263
by: Roedy Green | last post by:
I notice if I make padding too big on an element, when it is in a table it gets chopped off. Is there anything other than the padding on the TD that could be affecting this? -- Bush crime family lost/embezzled $3 trillion from Pentagon. Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video. http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
6
3535
by: Mark | last post by:
Hi, My page has a table with many columns such that the right-side of the table gets chopped off when printed. I specify a table width of 100%, but otherwise no cell dimensions are specified. The culprits are 2 wide columns which contain e-mail addresses. I can get the page to fit entirely on the printer output if the browser would break the e-mail address string at the '@' symbol. What I've done for now is replaced the '@' in all...
6
2642
by: Pucca | last post by:
My container with 2 panels containning Treeveiw and Listview controls are chopped off on the top by the toolstripmenu when I dock the these 2 contols in the parent container and the container is also docked to the parent, and the container at this poit enlarges and covers up the toolstripmenu. If I don't dock them then they don't resize when the form/container gets resize by the user. I have a toolcontianer with menustrip and toolstrip. ...
26
6273
by: drako | last post by:
Hi, I'm a bit stumped as I am getting a "Notice: Array to String Conversion" error when trying to do something that on the surface should be a very simple task - create an array, and write a set of values to them based on data submitted from POST Fields. Code below: $_SESSION = array();
2
2164
by: =?Utf-8?B?S3VtYXI=?= | last post by:
I am using granados telnet client for connecting to the telnet and get the data from it. Every thing appears to be going smooth. But for some reason when I try to write the byte data to a string or streamwriter, it looses the final packet. Strangely, If I output the datapackets to a console from the telnet server, it perfectly gets all the output packets. the code snippet is below: StreamWriter sw = new StreamWriter("c:\\output.txt",...
0
8631
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6491
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4340
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3003
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.