I need to know this code how can i make it functional under php7. Also i wish to know if only changing this lines could work or if i need to change more things. Tks.
- Code: Select all
<?php
if(isset($_POST['bts'])){
if($_POST['apellido1']!=null && $_POST['apellido2']!=null && $_POST['nombre1']!=null && $_POST['nombre2']!=null && $_POST['cc']!=null && $_POST['email']!=null && $_POST['emailCorp']!=null && $_POST['telFijo']!=null && $_POST['telCel']!=null && $_POST['fechaNac']!=null && $_POST['fechaExp']!=null && $_POST['fechaIng']!=null && $_POST['dirRes']!=null && $_POST['nombreBar']!=null && $_POST['notas']!=null){
$paginas = new Personal();
$paginas->add();
$apellido1 = $_POST['apellido1'];
$nombre1 = $_POST['nombre1'];
$nombre2 = $_POST['nombre2'];
$cc = $_POST['cc'];
$email = $_POST['email'];
$telCel = $_POST['telCel'];
$header = 'Email del usuario: ' . $email . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/html";
$body= "Usuario Registrado: " . $email . "\r\n";
$body .= "Nombre: " . $nombre1 . "\r\n";
$body .= "Apellido: " . $apellido1 . " \r\n" . "\r\n";
$body .= "\r\n";
$body .= "Desde: Registro Web M";
$body .= "\r\n";
$para = "talentohumano@m.com,aux.sgi@m.com,sistemas@m.com";
mail($para, utf8_decode($body), $header);
?>