HELP changing space/%20 to -

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lioney
Forum Newbie
Posts: 4
Joined: Sat Jul 04, 2009 7:27 am

HELP changing space/%20 to -

Post by lioney »

Hallo Sitepoint,

thank you for viewing my post. I need help regarding on replacing or changin space/%20 to -.

<a href="?do=detailpage&cat='.$tab[$i]['cat_id'].'&id='.$tab[$i]['posting_id'].'&title='.$tab[$i]['title'].'">';

if i click the link, it will turn something like this
lioney. sg /index.php?do=detailpage&cat=6&id=14&title=I%20need%20English%20-%20Japanese%20translator

the cat = category
id = posting ID
title = post title

is there anyway to change the space to something like - ?

Please i need some help.

thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: HELP changing space/%20 to -

Post by Christopher »

(#10850)
Post Reply