Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

& problem in URL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

& problem in URL

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

Hi,
I am fetching content from url & causing problem.
EX.
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
$customer_address=$_REQUEST["customer_address"];
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.

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

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.
nuWorldVu
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Feb 15, 2014 7:13 am


Return to PHP coding => General

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron