472,126 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

Problem text box, concatenating with next line...

57
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.
Sep 20 '07 #1
1 2461
plumba
57
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

Post your reply

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

Similar topics

14 posts views Thread by foodic | last post: by
7 posts views Thread by Kay | last post: by
5 posts views Thread by Doug Gifford | last post: by
5 posts views Thread by explode | last post: by
29 posts views Thread by ApeX | last post: by

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.