Colega dei uma revisada superficial no seu script, veja os comentários (procure por RLQ):
<html> <head> <title>Cadastro de Curriculum - Cesari</title> <script language="Javascript"> </script> <style type="text/css"> <!-- .titulo { font-size: 18px; color: #FFF; } .Sub-titulo { color: #FFF; font-weight: bold; font-size: 16px; } .Ds-Dados { font-size: 12px; } --> </style> </head> <body> <?php if ($submit) { // verifica se $nome 'ou' $sobrenome são nulos if (!$nome || !$endereco || !$numero || !$cidade || !$bairro || !$cep || !$tel_ddd || !$tel_num || !$cel_ddd || !$cel_num || !$nascimento || !$rg || !$titulo || !$pis || !$cnh || !$cnh_validade || !$reservista) { $error = "Favor preencher todos os campos!"; } else { include"conectando.php"; $endereco_compl = $endereco .', '.$numero; //mssql_query("INSERT INTO candidato_teste (cpf, endereco) VALUES (86847, '$cpf')"); //mssql_query("update candidato_teste set endereco = '$endereco_compl' where cpf = 6568 and email = 12"); mssql_close($con); echo('xxxxxx'); } } if (!$submit || $error) { echo $error; ?> <form method="post" action="<?php echo $PHP_SELF ?>"> <p> </p> <center> <table width="970" border="3"> <tr> <td align="center" bgcolor="#0000CC"><strong class="titulo"><em>Cadastramento de Candidato</em></strong></td> </tr> </table> </center> <p> </p> <table width="100%" border="3"> <tr> <td width="10%"> </td> <td> <table width="612" border="3"> <tr> <td width="598" bgcolor="#0000CC" class="Sub-titulo">> Dados Pessoais</td> </tr> </table> <table width="613" border="3"> <tr> <td width="75" class="Ds-Dados">Nome:</td> <td colspan="7"><input name="nome" type="text" id="nome" size="56" maxlength="50" value="<?php echo $nome ?>"></td> </tr> <tr> <td class="Ds-Dados">Endereço:</td> <td colspan="4"><input name="endereco" type="text" id="endereco" size="56" maxlength="50" value="<?php echo $endereco ?>"> </td> <td width="48" class="Ds-Dados">Numero:</td> <td width="22" class="Ds-Dados"><input name="numero" type="text" id="numero" size="3" value="<?php echo $numero ?>"> </td> </tr> <tr> <td class="Ds-Dados">Cidade:</td> <td width="144"><input type="text" name="cidade" id="cidade" value="<?php echo $cidade ?>"> </td> <td width="67" class="Ds-Dados">Bairro:</td> <td width="151" class="Ds-Dados"><input type="text" name="bairro" id="bairro" value="<?php echo $bairro ?>"> </td> <td colspan="3" class="Ds-Dados"> </td> </tr> <tr> <td class="Ds-Dados">CEP:</td> <td><input name="cep" type="text" id="cep" maxlength="8" value="<?php echo $cep ?>"> </td> <td><span class="Ds-Dados">Estado:</span></td> <td> <select name="estado" id="estado"> <option value="AC"="AC">AC </option> <option value="SP"="AC" selected="selected">SP </option> <option value="TO"="AC">TO </option> </select> </td> <td colspan="3"> </td> </tr> <tr> <td><span class="Ds-Dados">Telefone:</span></td> <td> <input name="tel_ddd" type="text" id="tel_ddd" size="1" maxlength="2" value="<?php echo $tel_ddd ?>"> - <input name="tel_num" type="text" id="tel_num" size="8" maxlength="8" value="<?php echo $tel_num ?>"> </td> <td class="Ds-Dados">Celular:</td> <td> <input name="cel_ddd" type="text" id="cel_ddd" size="1" maxlength="2" value="<?php echo $cel_ddd ?>"> - <input name="cel_num" type="text" id="cel_num" size="8" maxlength="8" value="<?php echo $cel_num ?>"> </td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">Nascimento:</td> <td><input type="text" name="nascimento" id="nascimento" value="<?php echo $nascimento ?>"> </td> <td class="Ds-Dados">Sexo:</td> <td><input type="radio" name="sexo" value="M" checked id="sexo_0" /> Masculino</label> </td> <td colspan="3"><input type="radio" name="sexo" value="F" id="sexo_1" /> Feminino</label></td> </tr> <tr> <td class="Ds-Dados">Filhos:</td> <td> <select name="filhos" id="filhos"> <option value="NAO" selected="selected">NÃO</option> <option value="SIM">SIM</option> </select> </td> <td class="Ds-Dados">Quantos:</td> <td><input name="filhos_qtde" type="text" id="filhos_qtde" size="2" maxlength="2" /></td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">CPF:</td> <td><input type="text" name="cpf" value="<?php echo $cpf ?>"></td> <!-- incluido o name para o CPF - RLQ --> <td class="Ds-Dados">RG:</td> <td><input type="text" name="rg" id="rg" value="<?php echo $rg ?>"></td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">Titulo:</td> <td><input type="text" name="titulo" id="titulo" value="<?php echo $titulo ?>"></td> <td class="Ds-Dados">PIS:</td> <td><input type="text" name="pis" id="pis" value="<?php echo $pis ?>"></td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">CNH:</td> <td><input type="text" name="cnh" id="cnh" value="<?php echo $cnh ?>"> </td> <td class="Ds-Dados">Validade:</td> <td><input type="text" name="cnh_validade" id="cnh_validade" value="<?php echo $validade ?>"></td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">Reservista:</td> <td><input type="text" name="reservista" id="reservista" value="<?php echo $reservista ?>"></td> <td> </td> <td> </td> <td colspan="3"> </td> </tr> <tr> <td><span class="Ds-Dados">Parentesco:</span></td> <td> <label> <input type="radio" name="parentesco" value="Sim" checked id="Parentesco_0" /> Sim</label> <label> <input type="radio" name="parentesco" value="Nao" id="Parentesco_1" /> Não</label> </td> <td><span class="Ds-Dados">Quem?</span></td> <td><input type="text" name="parentesco_quem" id="parentesco_quem" /></td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">Estado Civil:</td> <td> <select name="est_civil" id="est_civil"> <option value="Solteiro" selected="selected">Solteiro</option> <option value="Casado">Casado</option> <option value="Viuvo">Viuvo(a)</option> </select> </td> <td> </td> <td> </td> <td colspan="3"> </td> </tr> <tr> <td colspan="2" class="Ds-Dados"> Portador de Deficiência: <select name="deficiente" id="deficiente"> <option value="NAO" selected="selected">NÃO</option> <option value="SIM">SIM</option> </select> </td> <td> </td> <td> </td> <td colspan="3"> </td> </tr> <tr> <td class="Ds-Dados">Email:</td> <td colspan="6"><input type="text" name="email" id="email" disabled="on" size="56" value="<?php echo($email); ?>"></td> </tr> </table> <input type="Submit" name="submit" value="Next"> </td> <!-- fechamento de tag incluida - RLQ --> </tr> <!-- fechamento de tag incluida - RLQ --> </table> <!-- fechamento de tag incluida - RLQ --> </form> <?php } // end if ?> </body> <!-- foi retirada uma tag "p" desnecessária - RLQ --> </html>
Chegou a encontrar algum problema?
Não sei o motivo mas sempre que clico no botão Next a variavel $cpf fica nula.