logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-04-2011, 03:14 PM   #1
helena
 
Join Date: Jun 2011
Posts: 4
Default PROBLEM WITH FORM! I am desperate

I have no been able to fix this form... for some reason I receive the email... but the information from the form is not there... I dont know if there is a problem with my php docuemt or with the form itself.

<?php
extract($_GET);
/* Subject */

$emailSubject = 'PHP scripting';
$webMaster = 'mhtoscano@gmail.com';

/* Gathering data */

$nombreyapellido = $_POST['nombreyapellido'];
$correoelectrónico = $_POST['correoelectrónico'];
$teléfono = $_POST['teléfono'];
$comentario = $_POST['COMENTARIO'];

$body = <<<EOD
<br><hr><br>
Name: $nombreyapellido <br>
Email: $correoelectrónico <br>
Teléfono: $teléfono <br>
Comentario: $COMENTARIO <br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

/* the results */

$theResults = <<<EOD
<html>
<head>
<title>gracias</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>

<div>
<div align="left">¡Gracias por tu correo! Te contactaremos en breve.</div>
</div>
</body>
</html>
EOD;
echo "$theResults";

?>



FORM


<form action="contactform.php" method="post" id="form">
<div class="wrapper">
<div class="col-1">
<div class="form"> <span>
<input type="text" id="nombreyapellido" onfocus="if(this.value=='nombre y apellido'){this.value=''}" onblur="if(this.value==''){this.value='nombre y apellido'}" value="nombre y apellido" />
</span> </div>
<div class="form"> <span>
<input type="text" id="correoelectrónico" onfocus="if(this.value=='correo electrónico'){this.value=''}" onblur="if(this.value==''){this.value='correo electrónico'}" value="correo electrónico" />
</span> </div>
<div class="form"> <span>
<input type="text" id="teléfono" onfocus="if(this.value=='teléfono'){this.value=''} " onblur="if(this.value==''){this.value='teléfono'}" value="teléfono" />
</span> </div>
</div>
<div class="col-2">
<div class="form1"><span>
<textarea cols="1" rows="1" id="COMENTARIO">COMENTARIO:</textarea>
</span></div>
<div class="alignright"><a href="#" onclick="document.getElementById('form').reset()"> reset</a> &nbsp; &nbsp; <a href="#" onclick="document.getElementById('form').submit()" >submit</a></div>
</div>
helena is offline   Reply With Quote
Old 07-05-2011, 04:22 AM   #2
Johzen
 
Join Date: Jun 2011
Posts: 16
Default

leave that form as it is, meaning it should be the way you got it.

what you're suppose to change is the "form0#configuration.xml"
their should be instructions, & bla bla :\
Johzen is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com