Php 带有弹出窗口的联系人表单不起作用
我在我的网页上有一个部分,在这个新窗口的弹出窗口(对话框jquery)中显示产品。每个产品都有一个联系表单,西班牙语的“提交”-“Enviar”按钮无法使用PHP发送电子邮件 你知道为什么吗Php 带有弹出窗口的联系人表单不起作用,php,jquery,html,forms,popup,Php,Jquery,Html,Forms,Popup,我在我的网页上有一个部分,在这个新窗口的弹出窗口(对话框jquery)中显示产品。每个产品都有一个联系表单,西班牙语的“提交”-“Enviar”按钮无法使用PHP发送电子邮件 你知道为什么吗 <div class="fruticola dialog"> <div class="fields floatl rel"> <?php if (!isset($_POST['em
<div class="fruticola dialog">
<div class="fields floatl rel">
<?php
if (!isset($_POST['email'])) {
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<label class="text-field white rel">
Teléfono o correo electrónico </br>
<input size="35" class="rounded" name="telefono-correo" type="text" style="margin-left:15px; margin-bottom: 10px;" /> </br>
</label>
<label class="text-field white rel">
Mensaje </br>
<textarea class="textarea rounded" name="mensaje" rows="6" cols="20"></textarea>
</label>
</br>
<input type="submit" value="Enviar" class="boton-enviar"/>
</form>
<?php
}else{
$mensaje="Mensaje del formulario de contacto...";
$mensaje.= "\nTeléfono o correo: ". $_POST['telefono-correo'];
$mensaje.= "\nMensaje \n".$_POST['mensaje'];
$destino= "sample@gmail.com";
$remitente = $_POST['email'];
$asunto = "Mensaje de interés sobre el producto: ....";
mail($destino,$asunto,$mensaje,"FROM: $remitente");
?>
<p class="center rel text"><strong>Mensaje enviado.</strong></p>
<a href="javascript:history.back()">
<p class="center rel text" style="font-size:9px; margin-bottom:185px;"><strong>Regresar</strong></p>
</a>
<?php
}
?>
</div>
</div>
Mensaje enviado.
“不起作用”很模糊——什么不起作用?发生了什么,您期望什么?当您单击“提交”按钮时,表单是否再次出现?$\u POST['email']
设置在哪里?当我点击Submitt按钮时,没有发送表单的事件。RMK,当我在一个简单页面中使用此基本表单时,效果非常好,但在这个弹出窗口(.dialog)中不起作用