troubleshooting Question

I need help making a form processing script for a dreamweaver form page.

Avatar of avsc
avscFlag for United States of America asked on
PHPAdobe DreamweaverAdobe Flash
4 Comments2 Solutions351 ViewsLast Modified:
I have a novice web form created in dreamweaver that I need to process on my iis6 web server.

I know the root of the problem is the action is blank as shown below.
<p><form id="form1" name="form1" method="post" action="">

I tried writing a php script to process the dreamweaver from a youtube.com how to and it did not work.

Php is working on my windows server as I have messed with formtoemail.php in the past and have that working on one of my test form pages, however I can not make it work with this page.

Could someone who is knowledeable with DW and script writing PLEASE help me with this?

I have attached the html code for the contact_us.html page I am working on.

Thank you

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Acker &amp; Guerrero Roof Company, Inc.</title>
<style type="text/css"> 
<!-- 
body  {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	background: #666666;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
}

/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.thrColElsHdr #container {
	width: 966px;
	text-align: left; /* this overrides the text-align: center on the body element. */
	background-image: url(Images/Contact_Us_Page_BackGround.png);
	background-repeat: no-repeat;
	background-position: center center;
	height: 813px;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
} 
.thrColElsHdr #header {
	background-image: url(Images/Acker_Guerrero_Logo.png);
	background-repeat: no-repeat;
	background-position: center center;
	height: 105px;
	padding-top: 0;
	padding-right: 10px;
	padding-bottom: 0;
	padding-left: 10px;
	text-indent: -9999px;
} 
.thrColElsHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
#form1 {
	width: 44%;
	float: right;
	background-color: #000;
	color: #FFF;
	border: 1.7px outset #333;
	margin-right: 4em;
	margin-top: 1em;
	padding-top: 0em;
	padding-right: 1em;
	padding-left: 1em;
	background-image: url(Images/Questions%20to%20Ask.png);
	background-repeat: no-repeat;
	background-position: 20em 18.3em;
	padding-bottom: 0em;
	height: auto;
}
.fltlft { /* this class can be used to float an element left in your page */
	float: left;
	margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
	clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
--> 
</style><!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
.thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>

<body class="thrColElsHdr">

<div id="container">
  <div id="header">
    <h1>AG_Logo</h1>
  <!-- end #header --></div>
  <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="Index.html">HOME</a>
      <ul>
        <li><a href="Who_Are_We.html" class="MenuBarItemSubmenu">Who are we?</a>
          <ul>
            <li><a href="Owners.html">Owners</a></li>
            <li><a href="Sales_Staff.html">Sales staff</a></li>
</ul>
        </li>
        <li><a href="Why_choose_Us.html" class="MenuBarItemSubmenu">Why choose us?</a>
          <ul>
            <li><a href="Licensing_Insurance.html">Licensing &amp; Insurance</a></li>
            <li><a href="Workplace_Safety.html">Workplace Safety</a></li>
          </ul>
        </li>
        <li><a href="AAMCertifications.html">Associations, Affiliations </a></li>
        <li><a href="MMCertifications.html">Memberships &amp; Manufacturer Certifications</a></li>
      </ul>
    </li>
    <li><a href="Repair_Maintenance.html" class="MenuBarItemSubmenu">REPAIR &amp; MAINTENANCE</a>
      <ul>
<li><a href="Repair_Maintenance.html">Repair &amp; Maintenance</a></li>
<li><a href="Emergency_Leak_Programs.html">Emergency Leak Programs</a></li>
<li><a href="Can_t_I_just_Repair_it.html">Can't I just Repair it?</a></li>
      </ul>
    </li>
    <li><a href="Re_Roofing.html" class="MenuBarItemSubmenu">RE-ROOFING</a>
      <ul>
<li><a href="Re_Roofing.html">Re-Roofing</a></li>
<li><a href="The_Devil_is_in_the_Details.html">The Devil is in the Details</a></li>
      </ul>
    </li>
<li><a href="Contact_Us.html">CONTACT US</a></li>
  </ul>
  <p><form id="form1" name="form1" method="post" action="">
  
  <br />
  <table width="440" border="0" cellpadding="6" cellspacing="0">
    <tr>
      <td width="155"><label>Company name:</label> </td>
      <td width="261"><input name="CompanyName" type="text" id="CompanyName" size="30" /></td>
    </tr>
    <tr>
      <td width="155"><label>First name:</label> </td>
      <td width="261"><input name="FirstName" type="text" id="FirstName" size="30" /></td>
    </tr>
    <tr>
      <td><label>Last name:</label> </td>
      <td><input name="LastName" type="text" id="LastName" size="30" /></td>
    </tr>
    <tr>
      <td><label>Address:</label></td>
      <td><input name="Address" type="text" id="Address" size="30" /></td>
    </tr>
    <tr>
      <td><label>City:</label></td>
      <td><input name="City" type="text" id="City" size="30" /></td>
    </tr>
     <tr>
      <td><label>State:</label></td>
      <td><input name="State" type="text" id="State" size="10" /></td>
    </tr>
    <tr>
      <td><label>Zip Code:</label></td>
      <td><input name="ZipCode" type="text" id="ZipCode" size="10" /></td>
    </tr>
    <tr>
      <td><label>E-mail:</label> </td>
      <td><input name="EMail" type="text" id="EMail" size="30" /></td>
    </tr>
  </table>
<table width="420" border="0" cellpadding="6" cellspacing="0">
   
    <tr>
      <td> </td>
    </tr>
    <tr>
      <td><label>Questions about your roof?<br />
        Need an Estimate?<br />
        Tell us how we can help
      </label></td>
    </tr>
    <tr>
      <td><p>
        <textarea name="Comments" id="Comments" cols="35" rows="5.3"></textarea>
      </p></td>
    </tr>
  </table>
  <p>
    <label for="Submit"></label>
    <input type="submit" name="Submit" id="Submit" value="Send" />
    <label for="Clear"></label>
    <input type="reset" name="Clear" id="Clear" value="Clear form" />
    
    <br class="clearfloat" />
 
</p>
  </form>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
ASKER CERTIFIED SOLUTION
Jason C. Levine
Don't talk to me.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
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 2 Answers and 4 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