AYUDA CON FORMULARIO DREAM Y PHP

#1
Buenas a tardes a todos solo quiero ayuda con este formulario o si alguien tiene algo paresido

GRACIAS DE ANTEMANO


este es el codigo del html donde tengo el formulario



HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Place your description here" />
<meta name="keywords" content="put, your, keyword, here" />
<meta name="author" content="" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/Bauhaus_Md_BT_400.font.js" type="text/javascript"></script>
<!--[if lt IE 7]>
	<link href="style_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<style type="text/css">
<!--
.style1 {
	color: #89b700;
	font-weight: bold;
	font-size: 18px;
}
.style2 {
	font-size: 18px;
	color: #89b700;
}
.style4 {color: #000000}
-->
</style>
</head>
<body id="page1">
<div id="main">
<!-- header -->
	<div id="header">
		<ul class="site-nav">
			<li><a href="home.html" class="act">Home</a></li>
			<li><a href="about-us.html">About Us</a></li>
			<li><a href="services.html">Services</a></li>
		  <li><a href="contact-us.html">Contact Us</a></li>
			<li><a href="gallery.html">Gallery</a></li>
            <li><a href="testimonials.html">Testimonials</a></li>
	  </ul>
		<div class="logo"><a href="home.html"><img src="images/logo.gif" alt="" /></a></div>
	</div>
<!-- content -->
	<div id="content"><div class="inner_copy"><div class="inner_copy">All <a href="" title=""></a> </div></div>
		<div class="indent1">
			<div class="indent">
				<h2 align="center"></h2>
			  <h3 align="center" class="style2">h3>
			  <p align="center" class="style1"><strong></strong></p>
			  <p align="center" class="style1">PHONE: </p>
			  <p align="center" class="style1">E-MAIL:</p>
			  <p align="center" class="style1">&nbsp;</p>
			  <p align="center" class="style1">.</p>
			  <p align="center" class="style1"></p>
<form action="enviar.php" method="post" target="_self" id="form1">
			      <center><table border="1" cellpadding="1" cellspacing="1" bordercolor="#89b700">
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="fullname">FULL NAME:</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="fullname" type="text" id="fullname" size="35" maxlength="80" />
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="address1">ADRESS 1:</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="address1" type="text" id="address1" size="35" maxlength="100" />
</div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="adress2">ADRESS 2:</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="adress2" type="text" id="adress2" size="35" maxlength="100" />
</div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                          <label for="city"><span class="style4">CITY</span></label>
                          <strong>
                          <label for="city">:</label>
                          </strong> </div></td>
                      <td><div align="left">
                        <input name="city" type="text" id="city" size="35" maxlength="100" />
</div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="zipcode">ZIP CODE :</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="zipcode" type="text" id="zipcode" size="35" maxlength="10" />
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="homephone">HOME PHONE :</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="homephone" type="text" id="homephone" size="35" maxlength="12" />
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="cellphone">CELL PHONE :</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="cellphone" type="text" id="cellphone" size="35" maxlength="12" />
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label for="email">E-MAIL :</label>
                      </span>                       </div></td>
                      <td><div align="left">
                        <input name="email" type="text" id="email" size="35" maxlength="80" />
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">                        
                        <span class="style4">
                        <label>
                        <input type="checkbox" name="newcustomer" id="newcustomer" />
                        NEW CUSTOMER</label>
                      </span>                       </div></td>
                      <td><div align="left">                        
                        <span class="style4">
                        <label>
                        <input type="checkbox" name="activecustomer" id="activecustomer" />
                        ACTIVE CUSTOMER</label>
                      </span>                       </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">
                        <label><span class="style4">SEASON</span> :</label>
                      </div></td>
                      <td><div align="left">
                        <select name="season" id="season">
                          <option>CHOOSE...</option>
                          <option value="spring">SPRING</option>
                          <option value="summer">SUMMER</option>
                          <option value="fall">FALL</option>
                          <option value="winter">WINTER</option>
                          <option value="springsummercotract">SPRING &amp; SUMMER CONTRACT</option>
                          <option value="fallwintercontract">FALL &amp; WINTER CONTRACT</option>
                                                                                                </select>
                      </div></td>
                    </tr>
                    <tr>
                      <td><div align="right">
                        <label><span class="style4">MESSAGE</span> :</label>
                      </div></td>
                      <td><div align="left">
                        <textarea name="message" id="message" cols="35" rows="5"></textarea>
</div></td>
                    </tr>
                    <tr>
                      <td><div align="right">
                        <label>
                        <input type="reset" name="clear" id="clear" value="Reset Form" />
                        </label>
                      </div></td>
                      <td><div align="left">
                        <label>
                        <input type="submit" name="submit" id="submit" value="Submit" />
                        </label>
                      </div></td>
                    </tr>
                    
                    
                  </table>
              </form>
		      <p>&nbsp;</p>
		  </div>
	  </div>
	</div>
<!-- footer -->
	<div id="footer">
		<div class="indent">
			<div class="fleft">Copyright Enrique Gonzalez Landscaping All Rirhts Reserved 2012.</div>
			<div class="fright"></div>
	  </div>
	</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
y esto es lo del php que tengo
PHP:
<?php

$mail='micorreo@hotmail.com';


$fullname=$_POST['fullname'];
$address1 = $_POST['address1'];
$adress2 = $_POST['adress2'];
$city = $_POST['city'];
$zipcode = $_POST['zipcode'];
$homephone = $_POST['homephone'];
$cellphone = $_POST['cellphone'];
$email = $_POST['email'];
$newcustomer = $_POST['newcustomer'];
$activecustomer = $_POST['activecustomer'];
$springsummercotract = $_POST['springsummercotract'];
$fallwintercontract = $_POST['fallwintercontract'];
$message = $_POST['message'];

$thank="thankyou.html";


$message = "
fullname: ".$fullname." ;
address1: ".$address1." ;
adress2: ".$adress2." ;
city: ".$city." ;
zipcode: ".$zipcode." ;
homephone: ".$homephone." ;
cellphone: ".$cellphone." ;
email: ".$email." ;
newcustomer: ".$newcustomer.";
activecustomer: ".$activecustomer.";
springsummercotract: ".$springsummercotract.";
fallwintercontract: ".$fallwintercontract.";
message: ".$message."";



if (mail($mail,"Correo nuevo",$message)) // asunto Correo Nuevo
Header ("Location: $thank" );

?>
 
#3
eso se puede aam.. quitar muchas lineas.. y ponerlas en una. algo asi...

PHP:
<?php

$mail='micorreo@hotmail.com';
$thank="thankyou.html";

extract($_POST);

$message = "
fullname: ".$fullname." ;
address1: ".$address1." ;
adress2: ".$adress2." ;
city: ".$city." ;
zipcode: ".$zipcode." ;
homephone: ".$homephone." ;
cellphone: ".$cellphone." ;
email: ".$email." ;
newcustomer: ".$newcustomer.";
activecustomer: ".$activecustomer.";
springsummercotract: ".$springsummercotract.";
fallwintercontract: ".$fallwintercontract.";
message: ".$message."";

mail($mail,"Correo nuevo",$message);
Header ("Location: $thank" );

?>
y no sé que es lo que quieras realmente.. pero se puede mejorar mucho xDD

+
 
Arriba