In a page with a list of products (domain.php), I've put anchor to each product in this way:
Code: Select all
<a name="product'.$row['name'].'"></a>
Add.php:
Code: Select all
mysql_query($sql1);
mysql_query($sql2);
$_GET['id_subdomeniu']=$row["id_subdomeniu"];
include("domain.php");Code: Select all
My code is functioning, but it doesn't determine the browser to return in the position of the last product... I thought to use header("location:domain.php#product'.$name.'" or <echo ...> using the anchor, but in these cases the code doesn't transmit to domain.php the variable $_GET['id_subdomeniu']=$row["id_subdomeniu"]; and I get an error because domain.php don't have the value of $_GET['id_subdomeniu'].
Please, can you help me to solve this problem?