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

Posted on 2009-12-17
Last Modified: 2013-11-11
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 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" "">

<html xmlns="">


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



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



<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>

<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />


<body class="thrColElsHdr">

<div id="container">

  <div id="header">


  <!-- end #header --></div>

  <ul id="MenuBar1" class="MenuBarHorizontal">

    <li><a class="MenuBarItemSubmenu" href="Index.html">HOME</a>


        <li><a href="Who_Are_We.html" class="MenuBarItemSubmenu">Who are we?</a>


            <li><a href="Owners.html">Owners</a></li>

            <li><a href="Sales_Staff.html">Sales staff</a></li>



        <li><a href="Why_choose_Us.html" class="MenuBarItemSubmenu">Why choose us?</a>


            <li><a href="Licensing_Insurance.html">Licensing &amp; Insurance</a></li>

            <li><a href="Workplace_Safety.html">Workplace Safety</a></li>



        <li><a href="AAMCertifications.html">Associations, Affiliations </a></li>

        <li><a href="MMCertifications.html">Memberships &amp; Manufacturer Certifications</a></li>



    <li><a href="Repair_Maintenance.html" class="MenuBarItemSubmenu">REPAIR &amp; MAINTENANCE</a>


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



    <li><a href="Re_Roofing.html" class="MenuBarItemSubmenu">RE-ROOFING</a>


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



<li><a href="Contact_Us.html">CONTACT US</a></li>


  <p><form id="form1" name="form1" method="post" action="">


  <br />

  <table width="440" border="0" cellpadding="6" cellspacing="0">


      <td width="155"><label>Company name:</label> </td>

      <td width="261"><input name="CompanyName" type="text" id="CompanyName" size="30" /></td>



      <td width="155"><label>First name:</label> </td>

      <td width="261"><input name="FirstName" type="text" id="FirstName" size="30" /></td>



      <td><label>Last name:</label> </td>

      <td><input name="LastName" type="text" id="LastName" size="30" /></td>




      <td><input name="Address" type="text" id="Address" size="30" /></td>




      <td><input name="City" type="text" id="City" size="30" /></td>




      <td><input name="State" type="text" id="State" size="10" /></td>



      <td><label>Zip Code:</label></td>

      <td><input name="ZipCode" type="text" id="ZipCode" size="10" /></td>



      <td><label>E-mail:</label> </td>

      <td><input name="EMail" type="text" id="EMail" size="30" /></td>



<table width="420" border="0" cellpadding="6" cellspacing="0">



      <td> </td>



      <td><label>Questions about your roof?<br />

        Need an Estimate?<br />

        Tell us how we can help





        <textarea name="Comments" id="Comments" cols="35" rows="5.3"></textarea>





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





<script type="text/javascript">


var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});





Open in new window

Question by:avsc
    LVL 70

    Accepted Solution

    Hi avsc,

    Is PHP installed on the IIS server?

    If so, there are tons and tons of free form-to-whatever php scripts available with just a simple Google search...

    I usually recommend learning with this tutorial:
    LVL 16

    Assisted Solution


    Author Closing Comment

    Thank you for your input
    LVL 70

    Expert Comment

    by:Jason C. Levine
    If you are going to buy an extension from WebAssist to automate this, I suggest buying Universal Email and not the Contact Form Pack.  The Contact Form Pack is a little limited in what it will do and its defaults for the form are not very easy to modify.  Universal Email will do basically the same thing and give you more flexibility.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now