Hi
I'm using the following to get to another indexed page.
The page generates the <a name="blah"> when created.
echo "<a href=\"../convicts.php?currltr=$conltr#$convict\">Click here.</a>";
This has been working fine, but I thought I'd change the code and auto redirect using the Header tag eg.
$URL="../convicts.php?currltr=$conltr#$convict";
header ("Location: $URL"
This sends the user to the correct page but doesn't accept the #$convict because it is automatically rawurlencoded.
eg convicts.php?A#O\'Neill%20Tim
If I change the indexed page to use a rawurlencoded <a name> it works OK until I get to a hyphened name eg O'Neill.
The passed variable becomes O\'Neill. I can't seem to find a way of either stripping this or adding it the indexed page. This script handles the %20 (space) OK just not the appostrophy.
Anyone have any ideas?
Howard
I'm using the following to get to another indexed page.
The page generates the <a name="blah"> when created.
echo "<a href=\"../convicts.php?currltr=$conltr#$convict\">Click here.</a>";
This has been working fine, but I thought I'd change the code and auto redirect using the Header tag eg.
$URL="../convicts.php?currltr=$conltr#$convict";
header ("Location: $URL"
This sends the user to the correct page but doesn't accept the #$convict because it is automatically rawurlencoded.
eg convicts.php?A#O\'Neill%20Tim
If I change the indexed page to use a rawurlencoded <a name> it works OK until I get to a hyphened name eg O'Neill.
The passed variable becomes O\'Neill. I can't seem to find a way of either stripping this or adding it the indexed page. This script handles the %20 (space) OK just not the appostrophy.
Anyone have any ideas?
Howard