& problem in URL
I am fetching content from url & causing problem.
URL: http://localhost/pb-...s=229 house no &%20gali%20no%2034,%20harsh%20vihar&customer_address1=undefined&call_no=122451&machine_model_no=8542 21144&machine_serial_no=963258
when i am fetching by using
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.
1 - you don't have a named parm of 'customer_adress'.
2 - What are the extra & chars in your url? Obviously you can't have them since they are reserved to indicate individual parms.
I am guessing that you need to urlencode() the address before using it in your URL (so that it encodes the ampersand)?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread