NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing values with '&'

Hans C. Kaspersetz hans at cyberxdesigns.com
Thu Mar 29 20:16:53 EDT 2007


$string = urlencode("Hans & Allie");

echo $string;

Hans C. Kaspersetz
Cyber X Designs

http://www.cyberxdesigns.com



Néstor wrote:
> Guys,
>
> I have QUERYSTRING  that I am passing to another web page
> and it contains 'Consideration 534 & 535".  When I GET the variable
> I only get 'Consideration 534'
>
> How do I pass the '&'  so that I can read the rest of the variable????
>
> I tried using the following with no luck:
> 1) htmlentities and html_entity_decode
> 2) addslashes
>
> I am using php 4.3
>
> Thanks,
>
> Néstor :-)
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php



More information about the talk mailing list