porque fica com esse erro ->
Notice: Undefined variable: Alterar in C:\xampp\htdocs\advocacia\alterar_dados.php on line 27
o código é esse:
<?php include "dbconfig.php";
if (empty($_GET) || empty($_POST)){
}else{
$acao = $_GET['acao'];
$id = $_GET['id'];
$Inserir = $_POST['Inserir'];
$Alterar = $_POST['Alterar'];
$Excluir = $_GET['Excluir'];
$form_email = $_POST['form_email'];
$form_senha = $_POST['form_senha'];
$form_tel_res = $_POST['form_tel_res'];
$form_tel_com = $_POST['form_tel_com'];
$form_celular = $_POST['form_celular'];
$form_endereco = $_POST['form_endereco'];
$form_bairro = $_POST['form_bairro'];
$form_cidade = $_POST['form_cidade'];
$form_uf = $_POST['form_uf'];
$form_observacoes = $_POST['form_observacoes'];
}
if ($_SESSION['cliente'] == "") { header("Location:index.php"); }
else {
}
if ($Alterar == 'ok') {
mysql_query("UPDATE clientes SET email='$form_email',senha='$form_senha',tel_res='$form_tel_res',tel_com='$form_tel_com',celular='$form_celular', endereco='$form_endereco',bairro='$form_bairro',cidade='$form_cidade',uf='$form_uf' WHERE id_cliente=$_SESSION[id_cliente]"); }
?>
<html>
<head>
<title><?php mysql_result(mysql_query("SELECT escritorio FROM configuracao"),0,'escritorio')?></title>
<link href="admin/estilo.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="admin/mascara.js"></script>
</head>
<body bgcolor="#FFFFFF">
<table width="750" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#EBE9ED" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#EBE9ED"><?php include ("topo.php"); ?></td>
</tr>
<tr valign="top">
<td bgcolor="#FFFFFF">
<h1>Meus dados<BR>
<?php $sql = mysql_query("SELECT * FROM clientes WHERE id_cliente=$_SESSION[id_cliente]");?>
</h1>
<form action="<?=$PHP_SELF?>" method="post" enctype="multipart/form-data" name="form1">
<table width="450" border="0" align="center" cellpadding="4" cellspacing="0" bordercolor="#EBE9ED">
<tr>
<td width="110" align="right">Cliente:</td>
<td width="190">
<?php echo mysql_result($sql,0,'cliente');?>
</td>
</tr>
<tr>
<td align="right">E-mail:</td>
<td><input name="form_email" type="text" value="<?php echo mysql_result($sql,0,'email')?>" size="35" maxlength="100"></td>
</tr>
<tr>
<td align="right">Telefone Residencial:</td>
<td><input name="form_tel_res" onKeyPress="MascaraTelefone(form1.form_tel_res);" type="text" value="<?php echo mysql_result($sql,0,'tel_res')?>" size="20" maxlength="14">
</td>
</tr>
<tr>
<td align="right">Telefone Comercial:</td>
<td><input name="form_tel_com" onKeyPress="MascaraTelefone(form1.form_tel_com);" type="text" value="<?php echo mysql_result($sql,0,'tel_com')?>" size="20" maxlength="14">
</td>
</tr>
<tr>
<td align="right">Celular:</td>
<td><input name="form_celular" onKeyPress="MascaraTelefone(form1.form_celular);" type="text" value="<?php echo mysql_result($sql,0,'celular')?>" size="20" maxlength="14">
</td>
</tr>
<tr>
<td align="right">RG:</td>
<td>
<?php echo mysql_result($sql,0,'rg');?>
</td>
</tr>
<tr>
<td align="right">CPF:</td>
<td>
<?php echo mysql_result($sql,0,'cpf')?>
</td>
</tr>
<tr>
<td align="right">CNPJ: </td>
<td><?php echo mysql_result($sql,0,'cnpj')?>
</td>
</tr>
<tr>
<td align="right">IE: </td>
<td><?php echo mysql_result($sql,0,'ie')?>
</td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td align="right">Endereço:</td>
<td><input name="form_endereco" type="text" value="<?php echo mysql_result($sql,0,'endereco')?>" size="35" maxlength="80"></td>
</tr>
<tr>
<td align="right">Bairro:</td>
<td><input name="form_bairro" type="text" value="<?php echo mysql_result($sql,0,'bairro')?>" size="35" maxlength="50"></td>
</tr>
<tr>
<td align="right">Cidade:</td>
<td><input name="form_cidade" type="text" value="<?php echo mysql_result($sql,0,'cidade')?>" size="35" maxlength="40"></td>
</tr>
<tr>
<td align="right">UF: </td>
<td><input name="form_uf" type="text" value="<?php echo mysql_result($sql,0,'uf')?>" size="4" maxlength="2">
</td>
</tr>
<tr align="left">
<td colspan="2"> </td>
</tr>
<tr align="left">
<td colspan="2"><img src="admin/imagens/multi.gif" width="12" height="16" align="absmiddle">
Usuário para Acompanhamento Processual on-line</td>
</tr>
<tr>
<td align="right"><strong>Login:</strong></td>
<td>
<?php echo mysql_result($sql,0,'login')?>
</td>
</tr>
<tr>
<td align="right"><strong>Senha:</strong></td>
<td><input name="form_senha" type="password" value="<?php echo mysql_result($sql,0,'senha')?>" size="35" maxlength="20">
</td>
</tr>
<tr align="left">
<td colspan="2"> </td>
</tr>
<tr align="right">
<td colspan="2"> <input type="hidden" name="id" value="<?php $_SESSION[id_cliente]?>">
<input type="hidden" name="Alterar" value="ok"> <input type="submit" class="button" name="Submit" value="Alterar"></td>
</tr>
</table>
</form>
<p align="center"><br>
</p></td>
</tr>
<tr align="right" bgcolor="#EBE9ED">
<td><b>Desenvolvido por: <a href="http://www.amsoftware.info" target="_blank">Ananias Paz</a></b></td>
</tr>
</table>
</body>
</html>
<?php mysql_close(); ?>