& in dynamic keywords wuestion

Discussion in 'PHP' started by BobC, Oct 5, 2010.

  1. #1
    Hi,

    I'm using some php to insert some dynamic keywords using ?kw=keyword on the url.

    How can I put an '&' in the keyword? I have a short script to strip out hyphens and capitalise the keywords so that ?kw=black-and-white becomes Black And White.

    I'd prefer to use an "&" instead of "and" but it doesn't show when I use it.

    How do I do this?

    Thanks,
    Bob
     
    BobC, Oct 5, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    stephan2307, Oct 6, 2010 IP
  3. Deu

    Deu Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #3
    any encoding inculding urlencode , rawurlencode
     
    Deu, Oct 6, 2010 IP