& problem in URL

Hi,
I am fetching content from url & causing problem.
EX.
URL: http://localhost/pb-...s=229 house no &%20gali%20no%2034,%20harsh%20vihar&customer_address1=undefined&call_no=122451&machine_model_no=854221144&machine_serial_no=963258

when i am fetching by using
$customer_address=$_REQUEST[“customer_address”];
i should get address= 229 house no & gali no 34, harsh vihar,
But i only getting 229 house no. (not getting after Bold & in URL)

Can anyone suggest how to tackle this problem.

Thanks

The & is making the page think that this is the break point for the next querystring variable. You need to URLEncode the data in the sending page.

And I’d suggest using $_GET rather than $_REQUEST. :slight_smile: