I have the comments to my articles in the blog: /blogcomm_Results.php? idarticolo = 1
in page i have:
Comment 1 (idblogcomm 23)
Comment 2 (idblogcomm 24)
...
For reply to comments 1 I go to: rispostecomm_Insert.php?idblogcomm=23
in rispostecomm_Insert.php I have a recordset where select the Comment fields:
$colname_WADAblogcomm = "-1";
if (isset($_GET['idblogcomm'])) {
$colname_WADAblogcomm = $_GET['idblogcomm'];
}
mysql_select_db($database_siicom, $siicom);
$query_WADAblogcomm = sprintf("SELECT idblogcomm, commento, approvato, idarticolo FROM blogcomm WHERE idblogcomm = %s", GetSQLValueString($colname_WADAblogcomm, "int"));
...
Then I have a form for insert reply to comment in another db table
After the insert I want redirect to blogcomm_Results.php? idarticolo = 1
The strange thing, or I do not understand, and that I get the value of idarticolo from recordset but after insert in redirect do not find it. I try so
<form action="rispostecomm_Insert.php<?php echo((isset($_GET["idblogcomm"]))?"?".$_GET["idblogcomm"]:""); ?>" method="post" name="WADAInsertForm" id="WADAInsertForm">
as you said, but it does not work the same