• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

Have php form to convert email to html table

I am not an expert with PHP and am having trouble trying to figure out how to have this php send an email with the information in a html table.

Also how do I Make the Font bigger when the email is sent and some text bold.

I know how to write the html but not to add it into the php.

Here is a link to the form and attached is the FORM PHP.
http://bit.ly/9S2a3h

Thanks in advanced for your help.
showing.php
0
shawnzer
Asked:
shawnzer
3 Solutions
 
Mark BradyPrincipal Data EngineerCommented:
All you have to do is set the content type in order to send html email.

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"

Then for your body, just create the tables as you normally would but incorporate it into php code like this:

$body .= "<html><head><title></title></head><body>";
$body .= "<table><td>Some header goes here</td></tr>";
$body .= "<tr><td>".$php_variable here."</td></tr>";

// etc etc......

After you have placed all your data, finish the body variable off like this:

$body .= "</body></html>";

Now you should have all your variables inside your body variable including all HTML parts.

Good luck
0
 
thefreakteamCommented:
all what you need to do is, print the HTML code on the the variable $body
like if yu have this:
$Body .= "Number: ";

you need to put the html code, then bold is <b> </b
then you code will looks like
$Body .= "<b>Number: </b>";

it will make the text Number on Bold

you can try using the <font> tag's to change the text size
0
 
hieloCommented:
use the following as your HTML form:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="real estate, homes for sale, Chicago homes, home, houses for sale, new homes for sale, Glenview real estate, real estate listings,Chicago realtor, Chicago Northwest Suburbs, Chicago North Shore"/>
<meta name="description" content=" Find Chicago area real estate using our FREE search engine that is updated daily. Buy or Sell your next home, condo, or townhouse with us. "/>
<!-- InstanceBeginEditable name="doctitle" -->
<meta name="robots" content="NOINDEX,NOFOLLOW" />
<title>HelenOliveri.com - Showing Request</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->

<!-- InstanceEndEditable -->
<script type="text/javascript" src="../swfobject.js"></script>
<script type="text/javascript">swfobject.registerObject("helenheader", "9.0.0", "../expressInstall.swf");	</script>

<script type="text/javascript" src="../includes/CSSPanels/CSSPanels.js"></script>
<link rel="shortcut icon" href="http://www.helenoliveri.com/favicon.ico"/>
<link rel="stylesheet" href="../ajxmenu.css" type="text/css" />
<link rel="stylesheet" href="../mainstyle.css" type="text/css" />
<link href="../includes/CSSPanels/folder/standard.css" rel="stylesheet" type="text/css" />
</head>

<body class="twoColFixRtHdr" >
<div id="container2">
<div id="container">
<div  id="quicktop" style="height:100%; vertical-align:top;">
<form action="http://www.helenoliveri.idxco.com/idx/5372/results.php" method="post">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="font-size:14px; font-weight:bold; color:#FFF; text-decoration:none; text-align:left">Chicagoland &amp; North Shore Real Estate</td>

    <td width="95" valign="middle">
<p><font style="padding-right:3px; text-align:left; font-size:10px "><strong>Quick Search</strong></font></p>
</td>
    <td width="95"  valign="bottom">&nbsp;</td>
    <td width="70"> </td>
  </tr>
  <tr>
    <td valign="middle">
</td>

    <td width="190" colspan="2"  valign="middle">
<input type="text"  onfocus="this.value=''" align="middle" size="35" name="wildSearch" id="IDX-wildSearchForm" class="wildcarsearch" value="Ex: 3 Rooms, 4 Beds,  Glenview, IL"/>
</td>
    <td width="70" valign="middle" style="text-align:right">
  <input type="submit" name="submit" value="Search"  />
</td>
  </tr>
  <tr>
    <td  valign="middle"><p  style="font-size:12px; font-weight:bold; color:#FFF; text-decoration:none; text-align:left; padding-bottom:8px" >
   Ph. <a href="http://www.realping.com/accts/connect.cfm?id=6085&amp;tz=1&amp;src=web&amp;nocache=9644">847-967-0022</a> |  Fax. 847-574-7573 | <a href="mailto:helen@helenoliveri.com" target="_blank">helen@helenoliveri.com</a> | <a href="http://www.helenoliveri.idxco.com/idx/5372/contact.php">Contact us</a></p></td>

    <td width="110"  valign="middle">
      <font style="color:#FFF;text-decoration:none; font-size:10px; text-align:right;  vertical-align:top;"><a href="http://www.helenoliveri.idxco.com/idx/5372/userLogin.php"><strong>VIP Member Login </strong></a></font></td>
    <td width="80"  valign="middle" align="center"><font style="color:#FFF;text-decoration:none; font-size:10px; text-align:left; vertical-align:top"><strong><a href="../clients/buyerlogin.html">Buyer Login</a></strong></font></td>

    <td width="70"  valign="middle" style="text-align:right;"><font style="color:#FFF;text-decoration:none;font-size:10px; text-align:right; vertical-align:top; "><strong><a href="../clients/sellerlogin.html">Seller Login</a></strong></font></td>
  </tr>
</table>
</form>

</div>
<div id="header">
  <div>	
  <object id="helenheader" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="970" height="265">
				<param name="movie" value="../Header.swf" />
        		<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="../Header.swf" width="970" height="265">
				<!--<![endif]-->
				<div>
					<img src="../images/FLash/headeralt.jpg" alt="The Helen Oliveri Team of Keller Williams Realty" />                   
				</div>

				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		 </div>
<!-- end #header -->
  <div class="AJXMenueDFaTFD"><!-- AJXFILE:../ajxmenu.css -->
<ul>
 <li><a href="http://www.helenoliveri.com/" title="Home">Home</a></li>

 <li><a href="http://www.helenoliveri.idxco.com/idx/5372/featured.php" title="Properties">Properties</a></li> 
 <li><a class="ajxsub" href="#">For&nbsp;Buyers
  <!--[if gt IE 6]><![endif] --></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
  <ul>
   <li class="sfirst"><a href="http://www.helenoliveri.idxco.com/idx/5372/advancedSearch.php" title="Advanced&nbsp;Search">Advanced&nbsp;Search</a></li>
   <li><a href="http://www.helenoliveri.idxco.com/idx/5372/userLogin.php" title="VIP&nbsp;Registration">VIP&nbsp;Registration</a></li>
   <li><a href="special_buyers.html" title="Buyer's Guarantee">Buyer's&nbsp;Guarantee</a></li>

   <li><a href="reports_buyers.html" title="Special Reports">Special&nbsp;Reports</a></li>
   <li><a href="http://www.helenoliveri.idxco.com/idx/5372/featuredOpenHouses.php" title="Open Houses">Open&nbsp;Houses</a></li>   
   <li><a href="buyers_toolkit.html" title="Buyers&nbsp;Toolkit">Buyers&nbsp;Toolkit</a></li>
   <li><a href="iphone.html" title="iPhone App">iPhone&nbsp;App</a></li>
   <li><a href="http://www.helenoliveri.idxco.com/idx/5372/mortgage.php" title="Calculators">Calculators</a></li>   
   <li><a href="moving_pets.html" title="Moving&nbsp;Your&nbsp;Pets">Moving&nbsp;Your&nbsp;Pets</a></li>   
   <li class="slast"><a href="lingo.html" title="Learn the Lingo">Learn&nbsp;The&nbsp;Lingo</a></li>

  </ul>
  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
 </li>
 <li><a class="ajxsub" href="#">For&nbsp;Sellers
  <!--[if gt IE 6]><![endif] --></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
  <ul>
   <li class="sfirst"><a href="where_to_begin.html" title="Where&nbsp;to&nbsp;Begin">Where&nbsp;to&nbsp;Begin</a></li>

   <li><a href="http://www.helenoliveri.idxco.com/idx/5372/homeValue.php" title="Your&nbsp;Homes&nbsp;Value">Your&nbsp;Homes&nbsp;Value</a></li>
   <li><a href="special_sellers.html" title="Seller's Guarantee">Seller's&nbsp;Guarantee</a></li>
   <li><a href="reports_sellers.html" title="Special Reports">Special&nbsp;Reports</a></li>
   <li><a href="http://www.helenoliveri.idxco.com/idx/5372/soldPending.php" title="View our Solds &amp; Pendings">View our Solds &amp; Pendings</a></li>

   <li><a href="lingo.html" title="Learn the Lingo">Learn&nbsp;The&nbsp;Lingo</a></li>
   <li class="slast"><a href="sellers_toolkit.html" title="Sellers&nbsp;Toolkit">Sellers&nbsp;Toolkit</a></li>
  </ul>
  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
 </li>
 <li><a href="special_sellers.html" title="Marketing Strategies">Marketing&nbsp;Strategies</a></li>

 <!--<li><a href="../pages/neighborhoods.html" title="Neighborhoods">Neighborhoods</a></li>-->
 <li><a href="http://www.helenoliveri.com/blog/" target="_blank" title="Blog">Blog</a></li>
 <li><a class="ajxsub" href="#">News
  <!--[if gt IE 6]><![endif] --></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
  <ul>
   <li class="sfirst"><a href="press.html" title="Press">Press</a></li>  
   <li class="slast"><a href="realestate_news.html" title="Real&nbsp;Estate&nbsp;News">Real&nbsp;Estate&nbsp;News</a></li>

  </ul>
  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
 </li>
 <li><a class="ajxsub" href="#">About
  <!--[if gt IE 6]><![endif] --></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
  <ul>
   <li class="sfirst"><a href="about_helen.html" title="Meet&nbsp;Helen&nbsp;Oliveri">Meet&nbsp;Helen&nbsp;Oliveri</a></li>
   <li><a href="top10.html" title="Meet&nbsp;The&nbsp;Helen&nbsp;Oliveri&nbsp;">Meet&nbsp;The&nbsp;Helen&nbsp;Oliveri&nbsp;Team</a></li>

   <li><a href="about_keller_williams.html" title="Keller&nbsp;Williams">Keller&nbsp;Williams Realty</a></li>
   <li><a href="reo.html" title="Reo&nbsp;BPO&nbsp;Services">REO&nbsp;&amp;&nbsp;BPO&nbsp;Services</a></li>
   <li><a href="awards.html" title="Awards">Awards</a></li>
   <li><a href="career_information.html" title="Career&nbsp;Information">Career&nbsp;Information</a></li>  
   <li class="slast"><a href="testimonials.html" title="Testimonials">Testimonials</a></li>

  </ul>
  <!--[if lte IE 6]></td></tr></table></a><![endif]-->
 </li>
 <li><a href="http://www.helenoliveri.idxco.com/idx/5372/contact.php" title="Contact">Contact Us</a></li>
</ul>
 <br />
</div></div>
  <!-- InstanceBeginEditable name="Side Bar" -->
  <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="MainContent" -->

  <div id="properties">
    <div id="CSSMainPanel1" style="width:950px; position:relative;">
      <!-- (CSSPanels Begin)  #CSSMainPanel1 #folder #standard #true #(false:950px,false:40:true,true:1600:true,false:30:true)-->
      <!-- (CSSPanels Header1 Begin)  #CSSMainPanel1 -->
      <div id="CSSMainPanel1_h" class="folder_standard_h" style="height:40px;">
        <div class="folder_standard_h_back">
          <div id="CSSMainPanel1_h_back" class="folder_standard_h_backin" style="height:40px;"><img src="../includes/CSSPanels/folder/standard_images/header_top_left.png" class="folder_standard_h_tl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/header_top_center.png" class="folder_standard_h_tc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/header_top_right.png" class="folder_standard_h_tr" style="background:none;" alt="" /><img id="CSSMainPanel1_h_left" src="../includes/CSSPanels/folder/standard_images/header_middle_left.png" class="folder_standard_h_ml" style="background:none;height:18px;top:16px;" alt="" /><img id="CSSMainPanel1_h_center" src="../includes/CSSPanels/folder/standard_images/header_middle_center.png" class="folder_standard_h_mc" style="background:none;height:18px;top:16px;" alt="" /><img id="CSSMainPanel1_h_right" src="../includes/CSSPanels/folder/standard_images/header_middle_right.png" class="folder_standard_h_mr" style="background:none;height:18px;top:16px;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/header_bottom_left.png" class="folder_standard_h_bl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/header_bottom_center.png" class="folder_standard_h_bc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/header_bottom_right.png" class="folder_standard_h_br" style="background:none;" alt="" /></div>
        </div>
        <div id="CSSMainPanel1_h_front" class="folder_standard_h_front" style="height:40px;">

          <!-- (CSSPanels Header1 End)  #CSSMainPanel1 -->
          <div class="CSSMainPanel1_h" id="CSSMainPanel1_h_content" >Showing Request</div>
          <!-- (CSSPanels Header2 Begin)  #CSSMainPanel1 -->
        </div>
      </div>
      <!-- (CSSPanels Header2 End)  #CSSMainPanel1 -->
      <!-- (CSSPanels Content1 Begin)  #CSSMainPanel1 -->
      <div id="CSSMainPanel1_c" class="folder_standard_c" style="height:1600px;">

        <div class="folder_standard_c_back">
          <div id="CSSMainPanel1_c_back" class="folder_standard_c_backin" style="height:1600px;"><img src="../includes/CSSPanels/folder/standard_images/content_top_left.png" class="folder_standard_c_tl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/content_top_center.png" class="folder_standard_c_tc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/content_top_right.png" class="folder_standard_c_tr" style="background:none;" alt="" /><img id="CSSMainPanel1_c_left" src="../includes/CSSPanels/folder/standard_images/content_middle_left.png" class="folder_standard_c_ml" style="background:none; height:1580px; top:10px;" alt="" /><img id="CSSMainPanel1_c_center" src="../includes/CSSPanels/folder/standard_images/content_middle_center.png" class="folder_standard_c_mc" style="background:none; height:1580px; top:10px;" alt="" /><img id="CSSMainPanel1_c_right" src="../includes/CSSPanels/folder/standard_images/content_middle_right.png" class="folder_standard_c_mr" style="background:none; height:1580px; top:10px;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/content_bottom_left.png" class="folder_standard_c_bl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/content_bottom_center.png" class="folder_standard_c_bc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/content_bottom_right.png" class="folder_standard_c_br" style="background:none;" alt="" /></div>
        </div>
        <div id="CSSMainPanel1_c_front" class="folder_standard_c_front" style="height:1600px;">
          <!-- (CSSPanels Content1 End)  #CSSMainPanel1 -->
          <div class="CSSMainPanel1_c" id="CSSMainPanel1_c_content" > Schedule a showing below.<br />
            <br />
            <form method="POST" action="showing.php">

              <p>Buyer Specialist:<br/>
                <input type="text" name="BuyerSpecialist"/>
              </p>
              <p>Number of Showings:<br/>
                <input name="Number" type="text" id="Number"/>
                (ex. 5)</p>
              <p>Date of Showings: <br/>

                <input name="Date" type="text" id="Date"/>
                (ex. 4/12/10)</p>
              <p>Time Frame for All Showings:<br/>
                <input name="TimeFrame" type="text" id="TimeFrame"/>
                (ex. 10:30-2:30)</p>
              <strong>Showing 1</strong>
              <table border="0" cellspacing="1" cellpadding="1">

                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>
                <tr>

                  <td><input type="text" name="Address[0]" id="Address"/></td>
                  <td><input type="text" name="City[0]" 	  id="City"/></td>
                  <td><input type="text" name="MLS[0]"     id="MLS"/></td>
                  <td><input type="text" name="Time[0]"    id="Time"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 2</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[1]" id="Address2"/></td>
                  <td><input type="text" name="City[1]" 	  id="City2"/></td>
                  <td><input type="text" name="MLS[1]"     id="MLS2"/></td>
                  <td><input type="text" name="Time[1]"    id="Time2"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 3</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[2]" id="Address3"/></td>
                  <td><input type="text" name="City[2]" 	  id="City3"/></td>
                  <td><input type="text" name="MLS[2]"     id="MLS3"/></td>
                  <td><input type="text" name="Time[2]"    id="Time3"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 4</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[3]" id="Address4"/></td>
                  <td><input type="text" name="City[3]" 	  id="City4"/></td>
                  <td><input type="text" name="MLS[3]"     id="MLS4"/></td>
                  <td><input type="text" name="Time[3]"    id="Time4"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 5</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[4]" id="Address5"/></td>
                  <td><input type="text" name="City[4]" 	  id="City5"/></td>
                  <td><input type="text" name="MLS[4]"     id="MLS5"/></td>
                  <td><input type="text" name="Time[4]"    id="Time5"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 6</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[5]" id="Address6"/></td>
                  <td><input type="text" name="City[5]" 	  id="City6"/></td>
                  <td><input type="text" name="MLS[5]"     id="MLS6"/></td>
                  <td><input type="text" name="Time[5]"    id="Time6"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 7</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[6]" id="Address7"/></td>
                  <td><input type="text" name="City[6]" 	  id="City7"/></td>
                  <td><input type="text" name="MLS[6]"     id="MLS7"/></td>
                  <td><input type="text" name="Time[6]"    id="Time7"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 8</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[7]" id="Address8"/></td>
                  <td><input type="text" name="City[7]" 	  id="City8"/></td>
                  <td><input type="text" name="MLS[7]"     id="MLS8"/></td>
                  <td><input type="text" name="Time[7]"    id="Time8"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 9</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[8]" id="Address9"/></td>
                  <td><input type="text" name="City[8]" 	  id="City9"/></td>
                  <td><input type="text" name="MLS[8]"     id="MLS9"/></td>
                  <td><input type="text" name="Time[8]"    id="Time9"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 10</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[9]" id="Address10"/></td>
                  <td><input type="text" name="City[9]" 	  id="City10"/></td>
                  <td><input type="text" name="MLS[9]"     id="MLS10"/></td>
                  <td><input type="text" name="Time[9]"    id="Time10"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 11</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[10]" id="Address11"/></td>
                  <td><input type="text" name="City[10]" 	  id="City11"/></td>
                  <td><input type="text" name="MLS[10]"     id="MLS11"/></td>
                  <td><input type="text" name="Time[10]"    id="Time11"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 12</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[11]" id="Address12"/></td>
                  <td><input type="text" name="City[11]" 	  id="City12"/></td>
                  <td><input type="text" name="MLS[11]"     id="MLS12"/></td>
                  <td><input type="text" name="Time[11]"    id="Time12"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 13</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[12]" id="Address13"/></td>
                  <td><input type="text" name="City[12]" 	  id="City13"/></td>
                  <td><input type="text" name="MLS[12]"     id="MLS13"/></td>
                  <td><input type="text" name="Time[12]"    id="Time13"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 14</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[13]" id="Address14"/></td>
                  <td><input type="text" name="City[13]" 	  id="City14"/></td>
                  <td><input type="text" name="MLS[13]"     id="MLS14"/></td>
                  <td><input type="text" name="Time[13]"    id="Time14"/></td>
                </tr>
              </table>
              <br />
              <strong>Showing 15</strong>

              <table border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>Address</td>
                  <td>City</td>
                  <td>MLS #</td>
                  <td>Time</td>
                </tr>

                <tr>
                  <td><input type="text" name="Address[14]" id="Address15"/></td>
                  <td><input type="text" name="City[14]" 	  id="City15"/></td>
                  <td><input type="text" name="MLS[14]"     id="MLS15"/></td>
                  <td><input type="text" name="Time[14]"    id="Time15"/></td>
                </tr>
              </table>
              <br />
              <p>Additional Notes &amp; Requests:<br/>

                <textarea name="Notes" cols="50" rows="6"></textarea>
              </p>
              <p>
                <input type="submit" name="submit" value="Submit"/>
              </p>
            </form>
            <p>* Please allow 12-24 hrs. for us to schedule for you. <br />
              * You will be notified when the showings are completely set up for you.</p>

          </div>
          <!-- (CSSPanels Content2 Begin)  #CSSMainPanel1 -->
        </div>
      </div>
      <!-- (CSSPanels Content2 End)  #CSSMainPanel1 -->
      <!-- (CSSPanels Footer1 Begin)  #CSSMainPanel1 -->
      <div id="CSSMainPanel1_f" class="folder_standard_f" style="height:30px;">
        <div class="folder_standard_f_back">
          <div id="CSSMainPanel1_f_back" class="folder_standard_f_backin" style="height:30px;"><img src="../includes/CSSPanels/folder/standard_images/footer_top_left.png" class="folder_standard_f_tl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/footer_top_center.png" class="folder_standard_f_tc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/footer_top_right.png" class="folder_standard_f_tr" style="background:none;" alt="" /><img id="CSSMainPanel1_f_left" src="../includes/CSSPanels/folder/standard_images/footer_middle_left.png" class="folder_standard_f_ml" style="background:none;height:4px;top:10px;" alt="" /><img id="CSSMainPanel1_f_center" src="../includes/CSSPanels/folder/standard_images/footer_middle_center.png" class="folder_standard_f_mc" style="background:none;height:4px;top:10px;" alt="" /><img id="CSSMainPanel1_f_right" src="../includes/CSSPanels/folder/standard_images/footer_middle_right.png" class="folder_standard_f_mr" style="background:none;height:4px;top:10px;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/footer_bottom_left.png" class="folder_standard_f_bl" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/footer_bottom_center.png" class="folder_standard_f_bc" style="background:none;" alt="" /><img src="../includes/CSSPanels/folder/standard_images/footer_bottom_right.png" class="folder_standard_f_br" style="background:none;" alt="" /></div>

        </div>
        <div id="CSSMainPanel1_f_front" class="folder_standard_f_front" style="height:30px;">
          <!-- (CSSPanels Footer1 End)  #CSSMainPanel1 -->
          <div class="CSSMainPanel1_f" id="CSSMainPanel1_f_content" ><a href="http://www.helenoliveri.idxco.com/idx/5372/contact.php">Have questions? Contact us today!</a></div>
          <!-- (CSSPanels Footer2 Begin)  #CSSMainPanel1 -->
        </div>
      </div>
      <!-- (CSSPanels Footer2 End)  #CSSMainPanel1 -->

      <script type="text/javascript">CSSPanelAdjust("CSSMainPanel1", "c", "20", true);</script>
      <!-- #CSSMainPanel1 (CSSPanels End) -->
    </div>
    
    
    
<!-- end #mainContent -->
  </div>
  <!-- InstanceEndEditable -->
  <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
  <br class="clearfloat" />

  
 <!-- ShareThis Button Begin --> 
<div align="center" class="sharethis" >
Follow us on: <a href="http://www.helenoliveri.com/blog" target="_blank"><img src="../images/blog.jpg" alt="Our Blog" width="75" height="32" hspace="3" vspace="3" border="0" align="middle" /></a><a href="http://twitter.com/helenoliveri" target="_blank"><img src="../images/twitter.jpg" alt="Twitter" width="75" height="32" hspace="3" vspace="3" border="0" align="middle" /></a><a href="http://www.facebook.com/helenoliveri" target="_blank"><img src="../images/facebook.jpg" alt="Facebook" width="75" height="32" hspace="3" vspace="3" border="0" align="middle" /></a><a href="http://www.youtube.com/HelenOliveri" target="_blank"><img src="../images/youtube.jpg" alt="Youtube" width="75" height="32" hspace="3" vspace="3" border="0" align="middle" /></a><a href="http://www.linkedin.com/in/helenoliveri" target="_blank"><img src="../images/linkedin.jpg" alt="LinkedIn" width="75" height="32" hspace="3" vspace="3" border="0" align="middle" /></a>

</div> 

<!-- ShareThis Button END -->
 <div id="footer"  >
 <table  align="center" border="0" cellspacing="1" cellpadding="2" width="100%">
  <tr>
    <td></td>
    <td></td>

    <td></td>
  </tr>
  <tr>
    <td align="center" width="20%" valign="top"><a href="http://www.google.com/talk/service/badge/Start?tk=z01q6amlq2q5khlqfc9he9q5kokeml5cl68dd7a016p805gcqk0fhv2uhtsfpnvmvv0bsfrp6uski0ionf8t29dap90tgajm99tl25tg8mrqvagfh3ncv99l7vgaju8b5qkgb08aq73uvsp85635vcff3eb4htpr1m34a8j51" target="_blank"  onclick="window.open('http://www.google.com/talk/service/badge/Start?tk=z01q6amlq2q5khlqfc9he9q5kokeml5cl68dd7a016p805gcqk0fhv2uhtsfpnvmvv0bsfrp6uski0ionf8t29dap90tgajm99tl25tg8mrqvagfh3ncv99l7vgaju8b5qkgb08aq73uvsp85635vcff3eb4htpr1m34a8j51','popup','width=320, height=305,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=0'); return false"><img src="../images/chatnow.jpg" alt="Chat WIth Us" width="180" height="50" hspace="0" vspace="3" border="0" align="middle" /></a></td>
    <td rowspan="2" ><p align="center" id="footer p">    
<a href="http://www.helenoliveri.com/">Home</a> <a href="http://www.helenoliveri.idxco.com/idx/5372/featured.php">Properties</a> <a href="http://www.helenoliveri.idxco.com/idx/5372/advancedSearch.php">Advanced Search</a> <a href="http://www.helenoliveri.idxco.com/idx/5372/homeValue.php">Home Value</a> <a href="http://www.helenoliveri.idxco.com/idx/5372/featuredOpenHouses.php">Open Houses</a> <a href="special_sellers.html">Marketing Strategies</a> <a href="about_helen.html">Meet Helen</a> <br />  

<a href="reo.html">REO &amp; BPO Services</a> <a href="testimonials.html">Testimonials</a> <a href="http://www.helenoliveri.com/blog">Blog</a> <a href="http://www.helenoliveri.idxco.com/idx/5372/contact.php">Contact Us</a> <a href="career_information.html">Careers</a> <a href="teamlogin.html">Team Login</a> <a href="../clients/sellerlogin.html">Seller Login</a> <a href="../clients/buyerlogin.html">Buyer Login</a> <a href="sitemap.html">Sitemap</a></p><br/>

 <p align="center">www.HelenOliveri.com is brought to you by The Helen Oliveri Team of Keller Williams Realty.</p>
<p align="center"> All photos, images, content and interactive forms on this site, unless otherwise noted, are property of The Helen Oliveri Team, Midwest Real Estate Data, LLC (MRED LLC) and <br />may not be duplicated without expressed written permission. </p><br />
   
      <p align="center">© 2010 The Helen Oliveri Team, Inc. </p>
      </td>
    <td  width="20%" rowspan="2" valign="top">
    <!--<a href="http://www.google.com/talk/service/badge/Start?tk=z01q6amlq2q5khlqfc9he9q5kokeml5cl68dd7a016p805gcqk0fhv2uhtsfpnvmvv0bsfrp6uski0ionf8t29dap90tgajm99tl25tg8mrqvagfh3ncv99l7vgaju8b5qkgb08aq73uvsp85635vcff3eb4htpr1m34a8j51"><img src="../images/chatnow.jpg" alt="Chat WIth Us" width="180" height="50" border="0" align="middle" /></a>-->

    

    <a href="http://www.realping.com/accts/connect.cfm?id=6085&amp;tz=1&amp;src=web&amp;nocache=9644"><img src="../images/callnow.jpg" alt="Chat WIth Us" width="180" height="50" hspace="0" vspace="3" border="0" align="middle" /></a>
<a href="iphone.html" ><img src="../images/iphoneappblack.jpg" alt="iPhone Enabled. Download my app and enter this code: 5372" width="180" height="70" hspace="0" vspace="0" border="0" align="middle" /></a>

    </td>
  </tr>
  <tr>
    <td align="center"><img src="../images/kwlogo.jpg" alt="Keller Williams" width="50" height="30" hspace="0" vspace="5" border="0" align="bottom" /><img src="../images/realtorlogo.jpg" alt="Realtor" width="27" height="30" hspace="15" vspace="5" border="0" align="bottom" /><img src="../images/eqhouseop.jpg" alt="Equal Housing Opportunity" width="30" height="31" hspace="0" vspace="5" border="0" align="bottom" /></td>
  </tr>
 </table>

    
  <!-- end #footer --></div>
<!-- end #container --></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5449759-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
<!-- InstanceEnd --></html>

Open in new window

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
hieloCommented:
then use as your php page:
<?php


// get posted data into local variables
$EmailFrom = "helen@helenoliveri.com";
$EmailTo = "shawn@helenoliveriteam.com,";
$Subject = "Showing Request";
$BuyerSpecialist = Trim(stripslashes($_POST['BuyerSpecialist'])); 
$Date = Trim(stripslashes($_POST['Date'])); 
$TimeFrame = Trim(stripslashes($_POST['TimeFrame'])); 
$Number = Trim(stripslashes($_POST['Number'])); 

$row="";
$row.="<tr style='margin-top:.5em;'><td colspan='4'>Showing TOKEN1</td></tr>";
$row.="<tr><td>Address</td> <td>City</td> <td>MLS #</td> <td>Time</td></tr>";
$row.="<tr><td>TOKEN2</td> <td>TOKEN3</td> <td>TOKEN4</td> <td>TOKEN5</td></tr>";

$msg="";
foreach($_POST['Address'] as $k=>$v)
{
	$msg.=str_replace('TOKEN1', (1 + (int)$k), $row);
	$msg.=str_replace('TOKEN2',trim(stripslashes($_POST['Address'][$k])),$row);	
	$msg.=str_replace('TOKEN3',trim(stripslashes($_POST['City'][$k])),$row);	
	$msg.=str_replace('TOKEN4',trim(stripslashes($_POST['MLS'][$k])),$row);	
	$msg.=str_replace('TOKEN5',trim(stripslashes($_POST['Time'][$k])),$row);	
}


// Comments

$Notes = Trim(stripslashes($_POST['Notes'])); 




// validation
$validationOK=true;
if (Trim($BuyerSpecialist)=="") $validationOK=false;
if (Trim($Date)=="") $validationOK=false;
if (Trim($TimeFrame)=="") $validationOK=false;
if (Trim($Number)=="") $validationOK=false;
if (!$validationOK) {
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
  exit;
}


// prepare email body text
$Body = "";
$Body .= "BuyerSpecialist: ";
$Body .= $BuyerSpecialist;
$Body .= "\n";
$Body .= "\n";
$Body .= "Date: ";
$Body .= $Date;
$Body .= "\n";
$Body .= "\n";
$Body .= "TimeFrame: ";
$Body .= $TimeFrame;
$Body .= "\n";
$Body .= "\n";
$Body .= "Number: ";
$Body .= $Number;
$Body .= "\n";
$Body .= "\n";
$Body .="<table>" .$msg . "</table>";
$Body .= "\n";
$Body .= "Notes: ";
$Body .= $Notes;
$Body .= "\n";

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: <$EmailFrom>\r\n";

// send email 
$success = mail($EmailTo, $Subject, $Body, $headers);

// redirect to success page 
if ($success){
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
}
else{
  print "error";
}
?>

Open in new window

0
 
shawnzerAuthor Commented:
hielo,

I copied and pasted your html and php but the email output did not pull all the data in correctly.
Below is how the email appeared.  I filled in all information up to Showing #5


BuyerSpecialist: Wyn Jac Date: 4/12/10 TimeFrame: 10:00-5:00 Number: 5
Showing 1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
126 Washington 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	Glenview 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	0746897 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	9:00-10:00
Showing 2
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
879 Willow 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	Morton Grove 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	0748974 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 TOKEN3 	TOKEN4 	10:00-11:00
Showing 3
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
4106 Octavia 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	Norridge 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	0789745 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	11:00-1:00
Showing 4
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
65 Tournament Dr 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	Hawthorn Woods 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	0797567 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	12:00-2:00
Showing 5
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 6
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
A ddress 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 7
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 8
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 9
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 10
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 11
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 12
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS ! # < td>Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 13
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 14
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Ti! me< /tr>
TOKEN2 	TOKEN3 	TOKEN4 	
Showing 15
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
	TOKEN3 	TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 		TOKEN4 	TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 		TOKEN5
Showing TOKEN1
Address 	City 	MLS # 	Time
TOKEN2 	TOKEN3 	TOKEN4 	
Notes: Test

Open in new window

0
 
hieloCommented:
try this:
<?php


// get posted data into local variables
$EmailFrom = "helen@helenoliveri.com";
$EmailTo = "shawn@helenoliveriteam.com,";
$Subject = "Showing Request";
$BuyerSpecialist = Trim(stripslashes($_POST['BuyerSpecialist'])); 
$Date = Trim(stripslashes($_POST['Date'])); 
$TimeFrame = Trim(stripslashes($_POST['TimeFrame'])); 
$Number = Trim(stripslashes($_POST['Number'])); 

$row=<<<ROW

	<tr style='margin-top:.5em;'><td colspan='4'>Showing TOKEN1</td></tr>
	<tr><td>Address</td> <td>City</td> <td>MLS #</td> <td>Time</td></tr>
	<tr><td>TOKEN2</td> <td>TOKEN3</td> <td>TOKEN4</td> <td>TOKEN5</td></tr>

ROW;

$msg="";
foreach($_POST['Address'] as $k=>$v)
{
	$tmp=$row;
	$tmp=str_replace('TOKEN1', (1 + (int)$k), $tmp);
	$tmp=str_replace('TOKEN2', !empty($_POST['Address'][$k]) ? stripslashes(trim($_POST['Address'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN3', !empty($_POST['City'][$k]) ? stripslashes(trim($_POST['City'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN4', !empty($_POST['MLS'][$k]) ? stripslashes(trim($_POST['MLS'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN5', !empty($_POST['Time'][$k]) ? stripslashes(trim($_POST['Time'][$k])) : "&nbsp;",$tmp);
	$msg.=$tmp;
}


// Comments

$Notes = Trim(stripslashes($_POST['Notes'])); 




// validation
$validationOK=true;
if (Trim($BuyerSpecialist)=="") $validationOK=false;
if (Trim($Date)=="") $validationOK=false;
if (Trim($TimeFrame)=="") $validationOK=false;
if (Trim($Number)=="") $validationOK=false;
/*
if (!$validationOK) {
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
  exit;
}
*/

// prepare email body text
$Body = "";
$Body .= "BuyerSpecialist: ";
$Body .= $BuyerSpecialist;
$Body .= "\n";
$Body .= "\n";
$Body .= "Date: ";
$Body .= $Date;
$Body .= "\n";
$Body .= "\n";
$Body .= "TimeFrame: ";
$Body .= $TimeFrame;
$Body .= "\n";
$Body .= "\n";
$Body .= "Number: ";
$Body .= $Number;
$Body .= "\n";
$Body .= "\n";
$Body .="<table>" .$msg . "</table>";
$Body .= "\n";
$Body .= "Notes: ";
$Body .= $Notes;
$Body .= "\n";

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: <$EmailFrom>\r\n";
//echo $Body;exit;
// send email 
$success = mail($EmailTo, $Subject, $Body, $headers);

// redirect to success page 
if ($success){
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
}
else{
  print "error";
}
?>

Open in new window

0
 
shawnzerAuthor Commented:
hielo,

Great that worked.

 I added a table border and made some headers bold. I still am having trouble changing the font size for the entire email.


Im guessing I have the formatting incorrect.
<?php


// get posted data into local variables
$EmailFrom = "blah@blah";
$EmailTo = "blah@blah.com";
$Subject = "Showing Request";
$BuyerSpecialist = Trim(stripslashes($_POST['BuyerSpecialist'])); 
$Date = Trim(stripslashes($_POST['Date'])); 
$TimeFrame = Trim(stripslashes($_POST['TimeFrame'])); 
$Number = Trim(stripslashes($_POST['Number'])); 

$row=<<<ROW

	<tr style='margin-top:.5em; '><td colspan='4'><b>Showing TOKEN1</b></td></tr>
	<tr><td><b>Address</b></td> <td><b>City</b></td> <td><b>MLS#</b></td> <td><b>Time</b></td></tr>
	<tr><td>TOKEN2</td> <td>TOKEN3</td> <td>TOKEN4</td> <td>TOKEN5</td></tr>

ROW;

$msg="";
foreach($_POST['Address'] as $k=>$v)
{
	$tmp=$row;
	$tmp=str_replace('TOKEN1', (1 + (int)$k), $tmp);
	$tmp=str_replace('TOKEN2', !empty($_POST['Address'][$k]) ? stripslashes(trim($_POST['Address'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN3', !empty($_POST['City'][$k]) ? stripslashes(trim($_POST['City'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN4', !empty($_POST['MLS'][$k]) ? stripslashes(trim($_POST['MLS'][$k])) : "&nbsp;",$tmp);	
	$tmp=str_replace('TOKEN5', !empty($_POST['Time'][$k]) ? stripslashes(trim($_POST['Time'][$k])) : "&nbsp;",$tmp);
	$msg.=$tmp;
}


// Comments

$Notes = Trim(stripslashes($_POST['Notes'])); 




// validation
$validationOK=true;
if (Trim($BuyerSpecialist)=="") $validationOK=false;
if (Trim($Date)=="") $validationOK=false;
if (Trim($TimeFrame)=="") $validationOK=false;
if (Trim($Number)=="") $validationOK=false;
/*
if (!$validationOK) {
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
  exit;
}
*/

// prepare email body text
$Body = "";
$Body .= "<b>BuyerSpecialist: </b>";
$Body .= $BuyerSpecialist;
$Body .= "<br>";
$Body .= "<br>";
$Body .= "<b>Date: </b>";
$Body .= $Date;
$Body .= "<br>";
$Body .= "<br>";
$Body .= "<b>TimeFrame: </b>";
$Body .= $TimeFrame;
$Body .= "<br>";
$Body .= "<br>";
$Body .= "<b>Number: </b>";
$Body .= $Number;
$Body .= "<br>";
$Body .= "<br>";
$Body .= "<table border='1' cellpadding='1'><font size='+1'>" .$msg . "</font></table>";
$Body .= "<br>";
$Body .= "<b>Notes: </b>";
$Body .= $Notes;
$Body .= "<br>";


$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: <$EmailFrom>\r\n";
//echo $Body;exit;

// send email 
$success = mail($EmailTo, $Subject, $Body, $headers);

// redirect to success page 
if ($success){
  print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.helenoliveri.com/pages/showing.html\">";
}
else{
  print "error";
}
?>

Open in new window

0
 
hieloCommented:
>> I still am having trouble changing the font size for the entire email.

change:
$Body .= "<table border='1' cellpadding='1'><font size='+1'>" .$msg . "</font></table>";


back to:
$Body .= "<table border='1' cellpadding='1'>" .$msg . "</table>";

AND then IMMEDIATELY BEFORE:
$success = mail($EmailTo, $Subject, $Body, $headers);

put:
$Body="<html><body style='font-size:150% !important;'>{$Body}</body></html>";


0
 
shawnzerAuthor Commented:
still did not work.

Is this correct below?

$Body .= "<table border='1' cellpadding='1'>" .$msg . "</table>";
$Body .= "<br>";
$Body .= "<b>Notes: </b>";
$Body .= $Notes;
$Body .= "<br>";


$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: <$EmailFrom>\r\n";
//echo $Body;exit;

$Body="<html><body style='font-size:150% !important;'>{$Body}</body></html>";
// send email
$success = mail($EmailTo, $Subject, $Body, $headers);
0
 
hieloCommented:
OK, then try adding the font tag within the <TD> tags:
<tr><td><font size='+1'>TOKEN2</font></td> <td><font size='+1'>TOKEN3</font></td> <td><font size='+1'>TOKEN4</font></td> <td><font size='+1'>TOKEN5</font></td></tr>
0
 
shawnzerAuthor Commented:
Thanks hielo!
0
 
hieloCommented:
You are welcome!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now