Jump to content
Fórum Script Brasil
  • 0

Formulario Flash+php Como Recuperar Checkbox?


gra
 Share

Question

olá!

tenho um form em flash c/ um checkbox, mas não sei como faço para recuperar no php o checkbox selecionado, abaixo parte do código do meu php:

$mens .= "praís: $pais

";

$mens .= "Receber informativos?: /É AQUI QUE NÃO SEI O QUE COLOCAR

";

$mens .= "Mensagem: $mensagem

";

$mens .= "------------------------------

";

$mens .= "Informações:

";

$mens .= "Usando: $HTTP_USER_AGENT

";

$mens .= "Hostname: $ip

";

$mens .= "Endereço de IP: $REMOTE_ADDR

";

$mens .= "Data/Hora: $date

";

mail("$emailadmin","Pedido","$mens","$cabecalho");

QUEM SOUBER, POR FAVOR ME AJUDE,

OBRIGADA

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Aqui funcionou perfeitamente:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Teste</title>
</head>
<body>
<?php
if (getenv("REQUEST_METHOD") == "POST"){
    $x = (isset($_POST['info']) AND $_POST['info'] == "s") ? "sim" : "não";
    echo "<h2>Receber informativo? <span style=\"color:red;\">$x</span></h2>";
}
?>
<form method="post" action="">
<input type="checkbox" name="info" value="s" /> Receber Informativo
<br /><br />
<input type="submit" value="Enviar" />
</form>
</body>
</html>

[]'s

Link to comment
Share on other sites

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