Passing variables
| From: | Dani | Date: | Fri, 23 Apr 2004 00:14:28 +0000 |
| Subject: | Passing variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184323@lists.php.net to get a copy of this message | ||
Hello.
I'm trying to pass variables from a page to the other and, for some reason,
I just can make this to work. Here's what I'm doing:
if(!(empty($te_es_t_nome)))
{
/* Insere Valores na talela Ramo de Atividade / Estabelecimento */
$sql02 = "INSERT INTO te_ramo_ativ_estab (te_re_n_id, te_es_n_id,
te_ra_n_id, te_re_t_especific)
VALUES(NULL, '$te_es_n_id', '$te_ra_n_id',
'$te_re_t_especific_4');";
$res02 = mysqlexecuta($id,$sql02);
header("Location: ins_02.php?te_es_n_id=$te_es_n_id");
}
?>
the variables are sent to the new page, and I'm trying to do this:
$estabID = $_POST['te_es_n_id'];
What am I doing wrong?
Thank you for any help. :)
Dani