Zepo. Posted July 2, 2007 Share Posted July 2, 2007 http://ladders.elitebattles.com/standings.php?act=something Shows all the ladders with the game name something. The problem is, links dont allow spaces for games such as Socom Fire Team Bravo 2. I need to know what to do so i can link to games with spaces? Is there a way to take act and remove the % and turn them into spaces? Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/ Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 if for the url space is always % and what link ?? explain more Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287625 Share on other sites More sharing options...
sasa Posted July 2, 2007 Share Posted July 2, 2007 try http://ladders.elitebattles.com/standings.php?act=Socom+Fire+Team+Bravo+2 Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287628 Share on other sites More sharing options...
Zepo. Posted July 2, 2007 Author Share Posted July 2, 2007 try http://ladders.elitebattles.com/standings.php?act=Socom+Fire+Team+Bravo+2 It doesnt work, somehow i need the output of $act with the url of http://ladders.elitebattles.com/standings.php?act=Socom%Fire%Team%Bravo%2 to be Socom Fire Team Bravo 2 I need some way to turn the % into spaces.... Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287629 Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 i dont think there is Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287632 Share on other sites More sharing options...
Zepo. Posted July 2, 2007 Author Share Posted July 2, 2007 i dont think there is Theres no type of conditional to replace % with spaces? Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287634 Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 yes that how i know url Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287636 Share on other sites More sharing options...
BillyBoB Posted July 2, 2007 Share Posted July 2, 2007 if you do % you can just try <?php $getinfo = str_replace("%", " ", $_GET[act]); ?> This will just change all the % into spaces in the string $getinfo Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287637 Share on other sites More sharing options...
sasa Posted July 2, 2007 Share Posted July 2, 2007 if you have act=Socom+Fire+Team+Bravo+2 in url and $act = $_GET['act']; in variable $act you have 'Socom Fire Team Bravo 2' what is wrong Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287640 Share on other sites More sharing options...
teng84 Posted July 2, 2007 Share Posted July 2, 2007 nothings wrong he simply want that space in the url Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287641 Share on other sites More sharing options...
BillyBoB Posted July 2, 2007 Share Posted July 2, 2007 hmm sasa thats neat i just tested that and it works cool that might help me in the future thanks alot Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287642 Share on other sites More sharing options...
Zepo. Posted July 2, 2007 Author Share Posted July 2, 2007 Got it, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/58027-solved-advice/#findComment-287644 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.