| 
	
 | 
 Posted by meltedown on 11/17/05 17:52 
Jerry Stuckle wrote: 
> Can you post your code? 
>  
> I've encoded a '#' before with no problems at all. 
>  
Thanks for telling me that. Apparently, this not a common problem but  
something wrong with my code. After you told me that, I did this simple  
example. 
 
http://reenie.org/test/test16.php?value=start%23end 
After you hit the link, it says 
$_GET is:Array ( [value] => start#end ) 
#end is not missing, so it works fine 
 
Here's the code for the example 
echo "\$_GET is:"; 
print_r($_GET); 
echo "<br>\n"; 
$value="start#end"; 
echo "value is:$value<br>\n"; 
$value=urlencode($value); 
echo "value after urlencode is:$value<br>\n"; 
echo "<a href='?value=".$value."'>test link</a>"; 
 
I'm still trying to figure out how to make an example of the original  
problem.
 
  
Navigation:
[Reply to this message] 
 |