?php
if(isset($_POST[empresa]) isset($_POST[nombre])
isset($_POST[telefono]) isset($_POST[mail])
isset($_POST[asunto]) isset($_POST[mensaje]) )
{
$fecha = date(d.m.y H:i);
$mymail = emilino.borag...@gmail.com;
$subject = MEGGA INSUMOS SRL : Contacto webbr;
Emiliano Boragina wrote:
?php
if(isset($_POST[empresa]) isset($_POST[nombre])
isset($_POST[telefono]) isset($_POST[mail])
isset($_POST[asunto]) isset($_POST[mensaje]) )
{
snip
I test this code to send mail, but I am testing this printing $contenido.
If nothing is ISSET must be
Hi again,
Thanks Chris for your quickly answer. I dont test it yet.
I want to share with all you a very strange, for me, solution:
?php
$empresa = $_POST[empresa];
$nombre = $_POST[nombre];
$telefono = $_POST[telefono];
$mail = $_POST[mail];
$asunto = $_POST[asunto];
$mensaje = $_POST[mensaje];
if($empresa == || $nombre == || $telefono == || $mail == ||
$asunto == || $mensaje == )
{
snip
I want to know somthing: this || operator is OR, and de logic in my code
is: if one of variables is empty and the rest not send the mail, it isnt?
Looks like it to me.
If I want all field