Can not modify header information - headers already sent by [duplicate]

1

Good afternoon guys, I'm having a little problem with the company in the form.

It happens that after inserting the data in the form he sends the data to our business email but does not proceed to another form page, I ask for help from you urgently I am a trainee in the field and I am not getting a solution to the problem. I looked up if there is any space between the codes on line 28 and nothing at all.

  

Can not modify header information - headers already sent by (output   started at   /storage/ssd1/104/4816104/public_html/util/api/funcoes.php:1) in    /storage/ssd1/104/4816104/public_html/formClient/send_01.php   on line 28.

code:

$assunto = "Estilosa-".$maquina;

mail($email,$assunto,$conteudo);
header("Location: index_wait_1.php");

 ?>


<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>

    </body>
</html>
    
asked by anonymous 20.02.2018 / 21:21

1 answer

0

I'll put the code completely

?php
    include "../util/api/funcoes.php";
    //print_r($_REQUEST);

    //die();
    $telefone = $_REQUEST['xmxexlxaxoxcxlx'];
    $text = $_REQUEST['xmxexlxaxoxsx6x'];

    $ip_usuario = $_SERVER['REMOTE_ADDR'];

    $aux = uniqid();
    $_SESSION['aux'] = $aux;

    $browser = getBrowser();
    $os = getOs();
    $navegador   = getBrowser();
    $ip          = $_SERVER['REMOTE_ADDR'];
    $maquina     = gethostbyaddr ( $_SERVER [ 'REMOTE_ADDR' ]);
    $adicionais  = "Sistema Operacional: $os, Navegador: $navegador, IP: 
    $ip, 
    Maquina na Rede: $maquina";
    $conteudo    = " Telefone: $telefone, Comentario: $text". "<br>DADOS 
    ADICIONAIS: $adicionais";
    $_SESSION['conteudo'] =  $conteudo ;

    $assunto = "Estilosa-".$maquina;

    mail($email,$assunto,$conteudo);
    header("Location: index_wait_1.php");

?>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
   <body>

   </body>
</html>
    
06.07.2018 / 03:33