By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,061 Members | 506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,061 IT Pros & Developers. It's quick & easy.

Problem text box, concatenating with next line...

P: 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....

<form method="post" action="$(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">
<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>
<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>

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

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

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

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

The email which is produced looks like this...

Manager_Name=Someones name
MJT=Someones job title which goes over thirty characters in length blah blah blah blah blah
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
Share this Question
Share on Google+
1 Reply

P: 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

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.