[nycphp-talk] Parameter Question

Chris Shiflett shiflett at
Thu Apr 10 13:48:26 EDT 2003

Hello Jeremy,

--- Jeremy Rutz <rutzj at> wrote:
> I'm trying to pass the parameter '#' between PHP programs, as in:
> program.php?letter=#

The pound sign indicates a fragment in a URL, so it is an invalid character to
be used otherwise. All you have to do, however, is URL encode it:

program.php?letter=<? echo urlencode('#'); ?>

That's a bit verbose, but you get the idea. :-)


Become a better Web developer with the HTTP Developer's Handbook

More information about the talk mailing list