In the following code fragment, the value of $key (line 39) is not being substituted. Can someone suggest why?
The variable is receiving the correct value as I have debugged for that in line 37 and it is correct.
If I replace the variable with an integer then the code run correctly i.e. it opens the form and executes a query returning the expected records.
Why will the substitution not take place within php and what must I do for the substitution to take place?
Thanks in advance.
37 //var_dump($key);
38 //echo "<br>";
39 header( 'Location: http://xx.x.80.94/ants/connie/allExhibitsForEvent.php?id=$key' );
40 ?>