473,652 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem text box, concatenating with next line...

57 New Member
Hi all.

I have a form which has a table and within the rows of the table are simple text input boxes. The ONLY problems with this is that when the form is posted (in text format) if the number of characters in a text box goes over 30 the next text box is concatenated in the email which the form sends!!

The table with the boxes is here....

[HTML]
<form method="post" action="mailto: an.email@addres s.com?subject=E N$(FORMNO)" enctype="text/plain" subject="New User" name="Enrolment " onsubmit="retur n formCheck(this) ;" id="e_form" language="JavaS cript"><table border="0" width="72%" id="table2" bgcolor="#FFFFC C">
<tr>
<td align="right" width="37%"><p align="left"><f ont color="#0000FF" ><b>Step 1 - Line Managers Details.</b></font></td>
<td align="left" width="62%">&nb sp;</td>
</tr>
<tr>
<td align="right" colspan="2"><p align="left"><f ont size="2"><b>Thi s should be the details of the line manager requesting this e-Enrolment.</b></font></td>
</tr>

<tr>
<td align="right" width="37%"><fo nt size="2">Manage rs User ID:</font></td>
<td align="left" width="62%">&nb sp;<font size="2"><input type="text" name="memail" size="10" maxlength="8" style="text-transform: uppercase" id="manID" onblur=varifyma nager();><font color="#FF0000" >*</font></td>
</tr>

<tr>
<td align="right" width="37%"><fo nt size="2">Name:</font></td>
<td align="left" width="62%">&nb sp;<input type="text" name="Manager_N ame" size="75" tabindex="75" maxlength="36"> <font color="#FF0000" >*</font></td>
</tr>

<tr>
<td align="right" width="37%"><fo nt size="2">Job Title:</font></td>
<td align="left" width="62%"><in put type="text" name="MJT" size="75" tabindex="2" maxlength="75"> </td>
</tr>

<tr>
<td align="right" width="37%"><fo nt size="2">Email Address:</font></td>
<td align="left" width="62%"><in put type="text" name="Manager_E mail" size="36" tabindex="3" maxlength="36" id="manemail" onblur="emailva lidation(this, 'Email address is invalid');"><fo nt color="#FF0000" >*</font></td>
</tr>
</table>[/HTML]

The email which is produced looks like this...

memail=testline
Manager_Name=Someones name
MJT=Someones job title which goes over thirty characters in length blah blah blah blah blah Manager_Email=someones@email .work
enr_type=Existing User

So you can see the MJT Manager_Email field has joined the end of the MJT field.

I cant for the life of me figure out why..

It happens with all text boxes on the form, but if they are under 30 they line up individually on the form.

It's causing massive problems as the systems which picks up the email can only be programed to extract the data for line numbers, so the concatenation throws it all out.

Any suggestions would be greatly welcomed.
Sep 20 '07 #1
1 2573
plumba
57 New Member
Ok so in the above, the example disaplyed in the forum looks like its on seperate lines, but the MJT=Someones job title which goes over thirty characters in length blah blah Manager_Email=someones@email .work

It does in the email appear on one line.
Sep 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
8906
by: xyz | last post by:
I have a form that has a text box that allows multi-line text. When I read an 80K file into it, only 64K characters are stored and displayed. However, if I copy from the 80K file using the Windows clipboard commands and then paste into the text box, all the characters are stored and displayed. This is how I read the file into the text box. It works fine until the file exceeds 64K. F = FreeFile
14
1744
by: foodic | last post by:
i am fresher to C++ programming, and I just want to learn Concatenating Calls, I have written a program, class SetMe { public: void setX(int x) {_x = x;} void setY(int y) {_y = y;} void doubleMe()
7
2818
by: Kay | last post by:
1) If i want to read data from a txt file, eg John; 23; a Mary; 16; i How can I read the above data stopping reading b4 each semi-colon and save it in three different variables ? 2) If I enter a number, can I use to call a particular node ? eg enter a number: 3 calling node of number 3 is it possible ?
5
1500
by: Doug Gifford | last post by:
WROX "Beginning VB.Net" 2nd Edition Using this code from Chapter 11 Page 472: Do Try ' Read a line from the file... currentLine = myReader.ReadLine lineCounter = lineCounter + 1 Catch e As EndOfStreamException ' Display the message...
13
3330
by: WALDO | last post by:
I have a .Net TextBox (TextBoxBase, really) in which I am appending about 20 lines of text per second. I use the AppendText() method to accomplish this. This is a great substitute for taking the Text property and concatenating it... Me.tb.Text &= newText ' Instead use Me.tb.AppendText(newText) ....ultimately setting the SelectionStart to the end of TextBox, the
5
2161
by: explode | last post by:
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can change depending how many columns are in a Table. I add a new column with this code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Try...
7
2778
by: Mary | last post by:
I have a student who has a hyphenated first name. If I concatenate the name like this: StudentName:( & ", " & ), it works as expected. If, however, I try to get the first name first by concatenating like this: StudentName: ( & " " & ), only the first name appears. I sure would appreciate any help! Mary
29
1877
by: ApeX | last post by:
Hi guys, i hace a question i have a datagrid col1 col2 ----------------- D text0 text1 text2 D text3
1
1518
by: plumba | last post by:
Hi all I'm not sure what or if there is an explanation for this but.... I have a html form, which contains textboxes. The form sends this way: form method="post" action="mailto:anemail@work.com?subject=form enctype="text/plain" so it's recieved in a simple email. Here's the problem: If the textbox contains spaces the resulting email seems to contatenate or warp with the next line!! It seems to wrap one extra line per space in the...
0
8370
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
8283
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,...
1
8470
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,...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4147
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
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
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
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.