Jump to content
Fórum Script Brasil
  • 0

Código De Formulário "echo"


root_slackware
 Share

Question

Caros Colegas;

Meu formulário Está funcionando corretamente, no entatnto no echo ele dá um erro!!!

segue abaixo o código:

<?

if (!$_POST){

?>

}else{

<form action="formulario.php" method=post>

<p><span class="style22 style34 style35">Nome</span><span class="style35">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>

<input type=text name="nome" size=30>

</p>

<p class="style35">Empresa:&nbsp;

<label>

<input name="empresa" type="text" id="empresa" size="30" />

</label>

</p>

<p class="style35">Cidade:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<label>

<input name="cidade" type="text" id="cidade" size="30" />

</label>

</p>

<p><span class="style22 style34 style36">Email:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<input type=text name=email size=30 />

</p>

<p><span class="style35">&nbsp;Telefone:</span>

<input name="telefone" type="text" id="telefone" size="30" />

</p>

<p class="style35">Solicita&ccedil;&atilde;o: </p>

<p>

<textarea name=coment cols=35 rows=6></textarea>

<br>

<input name="submit" type=submit value="Enviar">

</p>

</form>

<?

$corpo .= "Formulário enviado\n";

$corpo .= "Nome: " . $_POST["nome"] . "\n";

$corpo .= "Empresa". $_POST["empresa"]. "\n";

$corpo .= "Cidade" . $_POST["cidade"] . "\n";

$corpo .= "Email: " . $_POST["email"] . "\n";

$corpo .= "Telefone". $_POST["telefone"] ."\n";

$corpo .= "Comentários: " . $_POST["coment"] . "\n";

//envio o correio...

mail("[email protected]","Formulário Recebido",$corpo);

//agrade&ccedil;o pelo envio

echo <"http://meudominio.com/atendente.gif" width="243" height="144" border="1">;

}

?>

É esta linha que dá o erro,

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      151k
    • Total Posts
      649.1k
×
×
  • Create New...