Cannot Modify header information - headers already sent by

Asked

Viewed 1,329 times

1

Good afternoon guys I’m having a little problem at the company in the form.

It happens that after entering the data in the form it sends the data to our corporate email but does not proceed to another form page, I ask help from you urgently I am intern in the area and I am not getting a solution to the problem. I looked for any space between the codes on line 28 and nothing straight.

Cannot 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>
  • 1

    you have to post the code from the beginning

  • blz just a moment

1 answer

0

I’ll put the code in full

?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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.