Forum Moderators: coopster
I have a link on one page with the company name when I click on the link the other page opens
this is what is in the http:// at the top of the page
"editaddress.php?COMPANY_id=Benley%20&%20Benley%20Marketing"
i am using the following
$COMPANY_id = (isset($_GET['COMPANY_id'])) ? $_GET['COMPANY_id'] : '';
but all I get returned is COMPANY_id = Benley where it should be COMPANY_id = Benley & Benley Marketing. I have other companys with just space's between the names they work fine but any company with a "&" in it stop at the & how do i stop it from stopping at the &.
Thanks
Rob.
editaddress.php?COMPANY_ID=3&COMPANY_NAME=Benley%20&%20Benley%20Marketing To use a "&" inside the variable you need to escape it to "%26", also I would recomend escaping the spaces to "+" rather than "%20" as it looks neater.
editaddress.php?COMPANY_id=Benley+%26+Benley+Marketing