Reply to Re: passing the '#' character

Your name:

Reply:


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 ?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация