| 
 Posted by hackajar on 12/26/06 00:47 
do a sanity check.  Check if that value is even there before you send 
to the other script. 
 
Example: 
 
$data = "#mytext"; 
//Note: Adding this might help: 
//$data = urlencode($data); 
 
$url = "myurl.com?text=$data"; 
 
echo $url; 
 
-Hackajar 
 
Peter wrote: 
> > You could escape the # (%35 or something like that) and PHP has functions 
> > to do the encoding and decoding. See 
> > http://de.php.net/manual/en/function.urlencode.php and related functions. 
> 
> Problem is (I think) that it's too late when I can do the checking and 
> decoding 
> because a button is clicked and the data is sent via a form ... and is the 
> data not lost at that point ?
 
  
Navigation:
[Reply to this message] 
 |