troubleshooting Question

form mail scripting

Avatar of nsitedesigns
nsitedesignsFlag for United States of America asked on
Web DevelopmentHTMLPHP
8 Comments1 Solution400 ViewsLast Modified:
How do I modify this value so that the online form sends results in the order that they are displayed in the form?  Right now, address 1 comes first, then address 2, city, etc.  I would prefer to have first name, last name, address, etc.  I believe I have to modfiy  the following but I don't know what to put in place of the value=alpha
<input type="hidden" name="form_order" value="alpha"/>

In addition, I would like the form results to appear IN the email body, not as an attachment. Any idea how to do that?

<!doctype html>
<meta charset="UTF-8">
<title>Final Touch Interiors : SE Wisconsin Interior and Exterior Painting Contractor</title>
<link href="final.css" rel="stylesheet" type="text/css">

<body id="contact">

<div class="container"><img src="img/roller.png" alt="Final Touch Interiors" class="roller" /><br>

<div class="header"><!-- NAVIGATION - MAIN --><div id="nav_container"><div id="nav"><ul><li class="first"><a href="services.html">Services</a></li><li><a href="gallery.html">Gallery</a></li><li><a href="contact.html">Contact</a></li><li><a href="index.html">Home</a></li></ul></div>
  <a href="index.html"><img src="img/logo.png" width="284" class="logo_splat" height="177" alt="Final Touch Interiors" /></a><a href="index.html"></a><!-- end .header --></div></div>
    <div class="sidebar1"><img src="img/t_buehler.jpg" width="306" height="278" alt="" />
      <h2>Low and Zero VOC Paints</h2>
      <p>We care about your health and the environment. Part of our commitment to our customers, our crew, our families and our community is to embrace green products, whenever possible. We offer and encourage the use of low and zero Volatile organic compounds (VOCs) paints and products. </p> 
    <!-- end .sidebar1 --></div>
  <div class="content">
    <p>Call us at (920) 287-2808 for any interior or exterior painting and staining projects.   We are available Monday through Saturday from from 6:00 am to 8:00 pm. No project is too big or too small.</p>
    <p>We work around your schedule. Right from your first phone call we will set up an appointment that's convenient for you. Work during the day? That's okay. Got kids to pick up or drop off? No problem - we make appointments for evenings and weekends too.</p>
    <p>Complete  the form below and we will contact you shortly.</p>
    <!-- BEGIN FORM -->
 <form action="/webformmailer.php" method="post"> 
<input type="hidden" name="subject" value="Submission" /> 
<input type="hidden" name="redirect" value="thankyou.html" />
    <table cellpadding="5" cellspacing="1" width="100%" class="contactFormTable" style="text-align: left;">
                <td style=" text-decoration: none; font-weight: normal;" align="left">
                <table cellpadding="9" cellspacing="1" width="100%" border="0" class="contactFormTable" style="text-align: left;">
                            <td valign="top" ><p><span id="formLabel_First" controlid="formElement_First">First Name</span></p></td>
                            <td valign="top" > <input type="text" name="FirstName" /></td>
                            <td valign="top" ><p><span id="formLabel_Last" controlid="formElement_Last">Last Name</span></p></td>
                            <td valign="top" ><input type="text" name="LastName" /></td>
                            <td valign="top" ><p><span id="formLabel_Street1" controlid="formElement_Street1">Address Street 1</span></p></td>
                            <td valign="top" ><input id="formElement_Street1" size="30" name="Address Street 1" labelid="formLabel_Street1" /></td>
                            <td valign="top" ><p><span id="formLabel_Street2" controlid="formElement_Street2">Address Street 2</span></p></td>
                            <td valign="top" ><input id="formElement_Street2" size="30" name="Address Street 2" labelid="formLabel_Street2" /></td>
                            <td valign="top" ><p><span id="formLabel_City" controlid="formElement_City">City</span></p></td>
                            <td valign="top" ><input name="City" id="formElement_City" size="30" labelid="formLabel_City" /></td>
                          <td valign="top" ><p><span id="formLabel_State2" controlid="formElement_State">State</span></p></td>
                          <td valign="top" ><select id="State" name="State2">
                            <option value="AL" selected="selected">AL</option>
                            <option value="AK">AK</option>
                            <option value="AZ">AZ</option>
                            <option value="AR">AR</option>
                            <option value="CA">CA</option>
                            <option value="CO">CO</option>
                            <option value="CT">CT</option>
                            <option value="DE">DE</option>
                            <option value="DC">DC</option>
                            <option value="FL">FL</option>
                            <option value="GA">GA</option>
                            <option value="HI">HI</option>
                            <option value="ID">ID</option>
                            <option value="IL">IL</option>
                            <option value="IN">IN</option>
                            <option value="IA">IA</option>
                            <option value="KS">KS</option>
                            <option value="KY">KY</option>
                            <option value="LA">LA</option>
                            <option value="ME">ME</option>
                            <option value="MD">MD</option>
                            <option value="MA">MA</option>
                            <option value="MI">MI</option>
                            <option value="MN">MN</option>
                            <option value="MS">MS</option>
                            <option value="MO">MO</option>
                            <option value="MT">MT</option>
                            <option value="NE">NE</option>
                            <option value="NV">NV</option>
                            <option value="NH">NH</option>
                            <option value="NJ">NJ</option>
                            <option value="NM">NM</option>
                            <option value="NY">NY</option>
                            <option value="NC">NC</option>
                            <option value="ND">ND</option>
                            <option value="OH">OH</option>
                            <option value="OK">OK</option>
                            <option value="OR">OR</option>
                            <option value="PA">PA</option>
                            <option value="RI">RI</option>
                            <option value="SC">SC</option>
                            <option value="SD">SD</option>
                            <option value="TN">TN</option>
                            <option value="TX">TX</option>
                            <option value="UT">UT</option>
                            <option value="VT">VT</option>
                            <option value="VA">VA</option>
                            <option value="WA">WA</option>
                            <option value="WV">WV</option>
                            <option value="WI">WI</option>
                            <option value="WY">WY</option>
                            <td valign="top" ><p><span id="formLabel_Zip" controlid="formElement_Zip">Zip Code </span>(5 digits)</p></td>
                            <td valign="top" >
                              <input name="Zip Code" id="formElement_Zip" size="5" maxlength="5" labelid="formLabel_Zip" /></td>
                            <td valign="top" ><p><span id="formLabel_DaytimePhone" controlid="formElement_DaytimePhone">Daytime Phone</span></p></td>
                            <td valign="top" ><input name="Daytime Phone" id="formElement_DaytimePhone" size="30" labelid="formLabel_DaytimePhone" /></td>
                            <td valign="top" ><p><span id="formLabel_EveningPhone" controlid="formElement_EveningPhone">Evening Phone</span></p></td>
                            <td valign="top" ><input name="Evening Phone" id="formElement_EveningPhone" size="30" labelid="formLabel_EveningPhone" /></td>
                            <td valign="top" ><p><span id="formLabel_liamE" controlid="formElement_liamE">Email</span></p></td>
                            <td valign="top" ><input type="text" name="email" /></td>
                            <td colspan="1" valign="top" ><p><span id="formLabel_17a53" controlid="formElement_17a53">I would like work on</span></p></td>
                            <td colspan="1" valign="top" ><select id="formElement_17a53" name="I would like work on" size="1">
                            <option value="Interior" selected="selected">Interior</option>
                            <option value="Exterior">Exterior</option>
                             <option value="Commerical">Commercial</option>
                            <option value="Deck/Fence">Deck/Fence</option>
                           <option value="Color Consultation">Color Consultation</option>
                            <td valign="top" ><p><span id="formLabel_Comments" controlid="formElement_Comments">Project</span> Details</p></td>
                            <td valign="top" ><textarea name="comments" cols="40" rows="10"></textarea></td>
                          <td >&nbsp;</td>
                          <td valign="top" ><input type="submit" name="submit" value="Submit"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value="Reset"/></td>

<input type="hidden" name="form_order" value="alpha"/> <input type="hidden" name="form_delivery" value="hourly_digest"/> <input type="hidden" name="form_format" value="text"/> </form>

  <!-- END FORM -->

    <!-- end .content --></div>
  <div class="footer"><img src="img/logos_memberships.gif" alt="Final Touch Interiors Memberships" width="825" height="144" usemap="#Map" class="logo_memberships" />
    <map name="Map">
      <area shape="rect" coords="268,65,414,102" href="" target="_blank" alt="Angies List">
      <area shape="rect" coords="739,14,822,117" href="" target="_blank" alt="Sheboygan County Chamber of Commerce">
      <area shape="rect" coords="435,7,717,151" href="" target="_blank" alt="Sherwin Williams">
      <area shape="rect" coords="-2,33,100,141" href="" target="_blank" alt="Sheboygan Press Reader's Choice Award">
      <area shape="rect" coords="110,20,259,131" href="" target="_blank" alt="Linded In">
    <!-- end .footer --></div>
  <!-- end .container --></div>
(Question edited to put code into the code snippet ~Ray)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros