& problem in URL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Sun Feb 09, 2014 11:17 pm

& problem in URL

Postby rkrathor » Mon Feb 10, 2014 3:12 am

I am fetching content from url & causing problem.
URL: http://localhost/pb-customer-portal/for ... se%20no%20&%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
i should get address= 229 house no & gali no 34, harsh vihar,
But i only getting 229 house no.

Can anyone suggest how to tackle this problem.


New php-forum User
New php-forum User
Posts: 2
Joined: Sat Feb 15, 2014 7:13 am

Re: & problem in URL

Postby nuWorldVu » Sat Feb 15, 2014 7:41 am

From looking at the url; you're not allowed commas, but if you want to have commas use the urlencode(add the address) on the previous page link.

Secondly, it will only get what's in the customer_address, when it reads the & sign it becomes something new. Put all you want in the customer_address and split with a + sign, or give everything a name, like you have done on the other part of the url.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest