changing %20 in URL using PHP

This is a discussion on "changing %20 in URL using PHP" within the PHP Forum section. This forum, and the thread "changing %20 in URL using PHP are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 8th, 2005, 13:19
Junior Member
Join Date: Oct 2004
Location: Helston, Cornwal
Age: 34
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
changing %20 in URL using PHP

Hi

I have found this code, but not sure how it should be applied

Quote:
a href="/area<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."/".str_replace(' ', '_',$row_rs_town['area']) ?>">View more holiday rentals in <?php echo $row_rs_town['area']; ?></a>
On the inbound page do I put this,

Quote:
$town=str_replace('_', ' ',$_GET['town']);
or should it be

Quote:
$row_rs_town=str_replace('_', ' ',$_GET['town']);['area']
Or somthing else,

Thanks for your time
Reply With Quote

  #2 (permalink)  
Old Dec 8th, 2005, 13:52
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: changing %20 in URL using PHP

The first one I believe
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
changing, url, using, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing CSS with PHP Emzi PHP Forum 7 Oct 11th, 2007 23:24
Changing career DPhahn Introduce Yourself 24 Aug 9th, 2007 18:15
changing pic's bruno89 Web Page Design 4 Sep 8th, 2006 15:22
Changing cell id? moojoo JavaScript Forum 2 Aug 30th, 2006 20:16
Help changing the WHERE Variable? courtjester Databases 5 Jun 2nd, 2004 15:35


All times are GMT. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43