Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem text box, concatenating with next line...

Member
 
Join Date: Aug 2007
Posts: 57
#1: Sep 20 '07
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@address.com?subject=EN$(FO RMNO)" enctype="text/plain" subject="New User" name="Enrolment" onsubmit="return formCheck(this);" id="e_form" language="JavaScript"><table border="0" width="72%" id="table2" bgcolor="#FFFFCC">
<tr>
<td align="right" width="37%"><p align="left"><font color="#0000FF"><b>Step 1 - Line Managers Details.</b></font></td>
<td align="left" width="62%">&nbsp;</td>
</tr>
<tr>
<td align="right" colspan="2"><p align="left"><font size="2"><b>This should be the details of the line manager requesting this e-Enrolment.</b></font></td>
</tr>

<tr>
<td align="right" width="37%"><font size="2">Managers User ID:</font></td>
<td align="left" width="62%">&nbsp;<font size="2"><input type="text" name="memail" size="10" maxlength="8" style="text-transform: uppercase" id="manID" onblur=varifymanager();><font color="#FF0000">*</font></td>
</tr>

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

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

<tr>
<td align="right" width="37%"><font size="2">Email Address:</font></td>
<td align="left" width="62%"><input type="text" name="Manager_Email" size="36" tabindex="3" maxlength="36" id="manemail" onblur="emailvalidation(this, 'Email address is invalid');"><font 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.

Member
 
Join Date: Aug 2007
Posts: 57
#2: Sep 20 '07

re: Problem text box, concatenating with next line...


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.
Reply