Notice: Undefined index: acao in C:\wamp\www\jeccelulares\admin\frm_categoria.php on line 4
Notice: Undefined index: id in C:\wamp\www\jeccelulares\admin\frm_categoria.php on line 5
<?php
include "conexao.php";
$acao =$_POST["acao"];
$id =$_POST["id"];
$txt_categoria ==$_POST["txt_categoria"];
if ($acao == "Inserir")
{
$sql = "INSERT INTO categoria (categoria) VALUES ('$txt_categoria')";
mysql_query($sql) or die ("não foi possivel inserir os dados");
echo "<script type = 'text/javascript'> location.href ='index.php?link=2'</script>";
}
if ($acao==Alterar)