Hi,
I have a search page on my site that redirects depending on the search term selected within a form. I'm having problems passing the search term to the page that builds the results.
There are a whole load of these....
if ($search1) {
header('Location: http://www.something.com/search.php3?value=$search1');
}
the problem is that the value passed is always $search1 and not the actual value.
I have checked the value in $search1 by placing an echo immediately before the header line and it has the value I expect.
I also created this page...
<?php
$search1="S";
echo"<a href=http://www.something.com/search.php3?value=$search1>Test</a>";
?>
and it worked fine.
Where am I going wrong ?
Thanks