NYCPHP Meetup

NYPHP.org

[nycphp-talk] Parameter Question

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


Hello Jeremy,

--- Jeremy Rutz <rutzj at yahoo.com> 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. :-)

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list