I have this file "produktlist.php" with the code below.
for ($index=0; $index<$numRows; $index++) {
// Get each row/array/post
$prodArr = pg_fetch_array ($result, $index);
echo "<a href=javascript:fonster($prodArr[nr])>"."$prodArr[namn]"."</a>";
echo "<br>";
}
Klicking the url I go to "details.php" using the function "fonster".
The idea is to pass the variable $prodArr[nr]
through the javascript function to "details.php" -- using the index "nr" to open my "posgresql database" to present the user with more info on the "product" that corresponds to the unique index "nr"
The js-function "fonster" looks like this:
function fonster (param) {
msg = window.open("details.php", "", "");
return param;
}
How do I propagate the param value to
"details.php" so I can serch my database for the correct item? (the paramvalue is correct)
Max!