Order the fields

Rajah 11 Oct, 2010
Hi,

I have to change the order of the fields of a form (V2.3.9_J10)and made in Dreamweaver

The input fields are at the beginning (what I want), but in the e-mail it's at the end.
How can I change that, knowing that it are hundreds of rows?

<tr height="18">
    <td>
      <input name="Bierglas#" type="text" id="Bierglas#" size="3" maxlength="3" />
    </label></td>
    <td height="18">Bier/frisdrank glas                     </td>
    <td> €         0,15 </td>
  </tr>
  <tr height="18">
    <td><input name="Bierflute#" type="text" id="Bierflute#" size="3" maxlength="3" /></td>
    <td height="18">Bierflute</td>
    <td> €         0,18 </td>
  </tr>
GreyHead 11 Oct, 2010
Hi Rajah,

Tough one. There are two approaches I can think of:[list]
  • Use some kind of Macro tool to edit the list. From the sample you've given it looks pretty consistent. There are text manipulation tools like TextPipe Lite or Standard; that make this kind of mainpulation easy. Or you can do it Excel if you are comfortable with Excel formulae: I'd break each main <td> into a separate column then swap the columns around and rebuild.
  • Or the **better** solution is to throw out all the Form HTML and switch to using an array or a database table for the core data and a couple of PHP functions to create the Form HTML and the template see this post for an example
  • [/list]

    Bob
    Rajah 11 Oct, 2010
    Thanks for the quick reply! More complicated than I thought / hoped.
    GreyHead 11 Oct, 2010
    Hi Rajah,

    True, but the alternative is a lot of cut and paste :-(

    Bob
    This topic is locked and no more replies can be posted.