• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

ive got a link and when i call request to show the value it only shows the first letter?

ive got a link and when i call request to show the value it only shows the first letter?
can i surrond it with quotes or something ?

test.php?vendorname=B & A System Uses

0
aot2002
Asked:
aot2002
2 Solutions
 
snoyes_jwCommented:
you need to replace the spaces with %20.  See the urlencode function.
http://www.php.net/urlencode
0
 
BatalfCommented:
<a href="test.php?vendorname=<? echo urlencode("B & A System Uses"); ?>">Test</a>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now