Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
include "../banco_teste/conecta.php";
$nome = $_REQUEST["nome"];
$sexo = $_REQUEST["sexo"];
$textoarea = $_REQUEST["textoarea"];
$moradia = $_REQUEST["moradia"];
$transporte = $_REQUEST["transporte"];
$sqlinsert = "INSERT INTO formulario (`nome`, `sexo`, `textoarea`, `moradia`, `transporte`) VALUES ('$nome','$sexo','$textoarea','$moradia','$transporte')";
$resultado = mysql_query($sqlinsert);
if(!$sqlinsert){
echo "Não foi possível inserir.";
}
else{
echo "Inserido com sucesso!";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment